Squashed commit of the following:

commit 58d790f4916319b274c2c8a82b6226dc3f79258e
Author: Sukchan Lee <acetcom@gmail.com>
Date:   Thu Aug 13 22:05:38 2020 +0000

    udpate it

commit 5c06b8fa9114dc7391208d523cf850a3ca3f78d5
Author: Sukchan Lee <acetcom@gmail.com>
Date:   Thu Aug 13 16:01:02 2020 +0000

    update it

commit 19909f9d9e20f429bd06300e9ba2cfaef855c9b2
Author: Sukchan Lee <acetcom@gmail.com>
Date:   Thu Aug 13 15:52:13 2020 +0000

    update it

commit b7f2bb3681aa512dcb621e4662c90d7277863707
Author: Sukchan Lee <acetcom@gmail.com>
Date:   Thu Aug 13 15:48:18 2020 +0000

    update it

commit 53f3004467a81a0702d9c1ee3e29f4d4d29ff22c
Author: Sukchan Lee <acetcom@gmail.com>
Date:   Thu Aug 13 15:32:30 2020 +0000

    update it

commit e295ec4537c443cd6253592a9e31e151fc0bb827
Author: Sukchan Lee <acetcom@gmail.com>
Date:   Thu Aug 13 14:50:23 2020 +0000

    update it

commit 435edd22ba8118b31855b88d6974d9f757758da2
Author: Sukchan Lee <acetcom@gmail.com>
Date:   Thu Aug 13 14:39:43 2020 +0000

    update it

commit 49872a99f13476bd73a44150d18c66ad713ef699
Author: Sukchan Lee <acetcom@gmail.com>
Date:   Thu Aug 13 14:36:30 2020 +0000

    update it
This commit is contained in:
Sukchan Lee 2020-08-13 19:26:17 -04:00
parent dc7abdf9bf
commit bd72480303
6 changed files with 77 additions and 9 deletions

View File

@ -54,14 +54,32 @@ int app_initialize(const char *const argv[])
pcrf_thread = test_child_create("pcrf", argv_out);
if (ogs_config()->parameter.no_hss == 0)
hss_thread = test_child_create("hss", argv_out);
/*
* To avoid freeDiameter error
*
* ROUTING ERROR
* 'No remaining suitable candidate to route the message to' for:
*/
ogs_msleep(300);
if (ogs_config()->parameter.no_upf == 0)
upf_thread = test_child_create("upf", argv_out);
if (ogs_config()->parameter.no_sgwu == 0)
sgwu_thread = test_child_create("sgwu", argv_out);
if (ogs_config()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv_out);
if (ogs_config()->parameter.no_sgwc == 0)
sgwc_thread = test_child_create("sgwc", argv_out);
/*
* To avoid freeDiameter error
*
* ROUTING ERROR
* 'No remaining suitable candidate to route the message to' for:
*/
ogs_msleep(300);
if (ogs_config()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv_out);
if (ogs_config()->parameter.no_mme == 0)
mme_thread = test_child_create("mme", argv_out);

View File

@ -55,15 +55,33 @@ int app_initialize(const char *const argv[])
pcrf_thread = test_child_create("pcrf", argv_out);
if (ogs_config()->parameter.no_hss == 0)
hss_thread = test_child_create("hss", argv_out);
/*
* To avoid freeDiameter error
*
* ROUTING ERROR
* 'No remaining suitable candidate to route the message to' for:
*/
ogs_msleep(300);
if (ogs_config()->parameter.no_upf == 0)
upf_thread = test_child_create("upf", argv_out);
if (ogs_config()->parameter.no_sgwu == 0)
sgwu_thread = test_child_create("sgwu", argv_out);
if (ogs_config()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv_out);
if (ogs_config()->parameter.no_sgwc == 0)
sgwc_thread = test_child_create("sgwc", argv_out);
/*
* To avoid freeDiameter error
*
* ROUTING ERROR
* 'No remaining suitable candidate to route the message to' for:
*/
ogs_msleep(300);
if (ogs_config()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv_out);
ogs_sctp_init(ogs_config()->usrsctp.udp_port);
rv = mme_initialize();

View File

@ -88,15 +88,34 @@ static void initialize(const char *const argv[])
pcrf_thread = test_child_create("pcrf", argv);
if (ogs_config()->parameter.no_hss == 0)
hss_thread = test_child_create("hss", argv);
/*
* To avoid freeDiameter error
*
* ROUTING ERROR
* 'No remaining suitable candidate to route the message to' for:
*/
ogs_msleep(300);
if (ogs_config()->parameter.no_upf == 0)
upf_thread = test_child_create("upf", argv);
if (ogs_config()->parameter.no_sgwu == 0)
sgwu_thread = test_child_create("sgwu", argv);
if (ogs_config()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv);
if (ogs_config()->parameter.no_sgwc == 0)
sgwc_thread = test_child_create("sgwc", argv);
/*
* To avoid freeDiameter error
*
* ROUTING ERROR
* 'No remaining suitable candidate to route the message to' for:
*/
ogs_msleep(300);
if (ogs_config()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv);
test_epc_init();
ogs_sctp_init(ogs_config()->usrsctp.udp_port);

View File

@ -54,6 +54,14 @@ static void initialize(const char *const argv[])
rv = app_initialize(argv);
ogs_assert(rv == OGS_OK);
/*
* To avoid freeDiameter error
*
* ROUTING ERROR
* 'No remaining suitable candidate to route the message to' for:
*/
ogs_msleep(300);
rv = pcscf_fd_init();
ogs_assert(rv == OGS_OK);
}
@ -65,7 +73,6 @@ int main(int argc, const char *const argv[])
atexit(terminate);
test_5gc_run(argc, argv, "cups.yaml", initialize);
ogs_msleep(1000);
for (i = 0; alltests[i].func; i++)
suite = alltests[i].func(suite);

View File

@ -58,7 +58,6 @@ int main(int argc, const char *const argv[])
atexit(terminate);
test_5gc_run(argc, argv, "mnc3.yaml", initialize);
ogs_msleep(1000);
for (i = 0; alltests[i].func; i++)
suite = alltests[i].func(suite);

View File

@ -54,6 +54,14 @@ static void initialize(const char *const argv[])
rv = app_initialize(argv);
ogs_assert(rv == OGS_OK);
/*
* To avoid freeDiameter error
*
* ROUTING ERROR
* 'No remaining suitable candidate to route the message to' for:
*/
ogs_msleep(300);
rv = pcscf_fd_init();
ogs_assert(rv == OGS_OK);
}
@ -65,7 +73,6 @@ int main(int argc, const char *const argv[])
atexit(terminate);
test_5gc_run(argc, argv, "volte.yaml", initialize);
ogs_msleep(1000);
for (i = 0; alltests[i].func; i++)
suite = alltests[i].func(suite);