diff --git a/data/tutorial_tests/asterisk_ari/cgrates/etc/cgrates/cgrates.json b/data/tutorial_tests/asterisk_ari/cgrates/etc/cgrates/cgrates.json index f618baeb7..6bd6ff07c 100644 --- a/data/tutorial_tests/asterisk_ari/cgrates/etc/cgrates/cgrates.json +++ b/data/tutorial_tests/asterisk_ari/cgrates/etc/cgrates/cgrates.json @@ -104,6 +104,7 @@ "enabled": true, "resources_conns": ["*internal"], "stats_conns": ["*internal"], + "rals_conns": ["*internal"], "string_indexed_fields": ["Account"], }, diff --git a/data/tutorial_tests/fs_evsock/cgrates/etc/cgrates/cgrates.json b/data/tutorial_tests/fs_evsock/cgrates/etc/cgrates/cgrates.json index 6c4883d65..e08635ffb 100644 --- a/data/tutorial_tests/fs_evsock/cgrates/etc/cgrates/cgrates.json +++ b/data/tutorial_tests/fs_evsock/cgrates/etc/cgrates/cgrates.json @@ -6,6 +6,7 @@ "general": { "log_level": 7, "node_id":"CGRFreeswitch", + "reply_timeout": "5s", }, @@ -102,6 +103,7 @@ "enabled": true, "resources_conns": ["*internal"], "stats_conns": ["*internal"], + "rals_conns": ["*internal"], "string_indexed_fields": ["Account"], }, diff --git a/data/tutorial_tests/fs_evsock/freeswitch/etc/freeswitch_conf.tar.gz b/data/tutorial_tests/fs_evsock/freeswitch/etc/freeswitch_conf.tar.gz index be2ebb3f1..1ba0919c7 100644 Binary files a/data/tutorial_tests/fs_evsock/freeswitch/etc/freeswitch_conf.tar.gz and b/data/tutorial_tests/fs_evsock/freeswitch/etc/freeswitch_conf.tar.gz differ diff --git a/data/tutorial_tests/kamevapi/cgrates/etc/cgrates/cgrates.json b/data/tutorial_tests/kamevapi/cgrates/etc/cgrates/cgrates.json index 06c81fafa..8703b93b0 100644 --- a/data/tutorial_tests/kamevapi/cgrates/etc/cgrates/cgrates.json +++ b/data/tutorial_tests/kamevapi/cgrates/etc/cgrates/cgrates.json @@ -102,6 +102,7 @@ "enabled": true, "resources_conns": ["*internal"], "stats_conns": ["*internal"], + "rals_conns": ["*internal"], "string_indexed_fields": ["Account"], }, diff --git a/general_tests/tutorial_calls_test.go b/general_tests/tutorial_calls_test.go index 409005a27..b244aa2e8 100755 --- a/general_tests/tutorial_calls_test.go +++ b/general_tests/tutorial_calls_test.go @@ -382,15 +382,13 @@ func testCallCall1001To1002(t *testing.T) { // GetActiveSessions func testCallGetActiveSessions(t *testing.T) { var reply *[]*sessions.ExternalSession - expected := &[]*sessions.ExternalSession{ - { - RequestType: "*prepaid", - Tenant: "cgrates.org", - Category: "call", - Account: "1001", - Subject: "1001", - Destination: "1002", - }, + expected := &sessions.ExternalSession{ + RequestType: "*prepaid", + Tenant: "cgrates.org", + Category: "call", + Account: "1001", + Subject: "1001", + Destination: "1002", } if err := tutorialCallsRpc.Call(utils.SessionSv1GetActiveSessions, nil, &reply); err != nil { @@ -401,15 +399,14 @@ func testCallGetActiveSessions(t *testing.T) { continue } // compare some fields (eg. CGRId is generated) - if !reflect.DeepEqual((*expected)[0].RequestType, (*reply)[0].RequestType) { - t.Errorf("Expected: %s, received: %s", (*expected)[0].RequestType, (*reply)[0].RequestType) - } else if !reflect.DeepEqual((*expected)[0].Account, (*reply)[0].Account) { - t.Errorf("Expected: %s, received: %s", (*expected)[0].Account, (*reply)[0].Account) - } else if !reflect.DeepEqual((*expected)[0].Destination, (*reply)[0].Destination) { - t.Errorf("Expected: %s, received: %s", (*expected)[0].Destination, (*reply)[0].Destination) + if !reflect.DeepEqual(expected.RequestType, session.RequestType) { + t.Errorf("Expected: %s, received: %s", expected.RequestType, session.RequestType) + } else if !reflect.DeepEqual(expected.Account, session.Account) { + t.Errorf("Expected: %s, received: %s", expected.Account, session.Account) + } else if !reflect.DeepEqual(expected.Destination, session.Destination) { + t.Errorf("Expected: %s, received: %s", expected.Destination, session.Destination) } } - } }