From 054c3c0a63f11c50c5df4549d0ed274eca02c03d Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Fri, 4 Sep 2020 09:58:05 -0400 Subject: [PATCH] Add test code for P-CSCF [#535] --- configs/volte.yaml.in | 3 +++ tests/common/esm-build.c | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/configs/volte.yaml.in b/configs/volte.yaml.in index ca71789798..b708988ed7 100644 --- a/configs/volte.yaml.in +++ b/configs/volte.yaml.in @@ -79,6 +79,9 @@ smf: - 8.8.4.4 - 2001:4860:4860::8888 - 2001:4860:4860::8844 + p-cscf: + - 127.0.0.1 + - ::1 mtu: 1400 freeDiameter: identity: smf.localdomain diff --git a/tests/common/esm-build.c b/tests/common/esm-build.c index 024ebc36ee..28c210b797 100644 --- a/tests/common/esm-build.c +++ b/tests/common/esm-build.c @@ -33,11 +33,16 @@ ogs_pkbuf_t *testesm_build_pdn_connectivity_request(test_sess_t *sess) &pdn_connectivity_request->esm_information_transfer_flag; ogs_nas_protocol_configuration_options_t *protocol_configuration_options = &pdn_connectivity_request->protocol_configuration_options; +#if 0 uint8_t ue_pco[29] = "\x80\x80\x21\x10\x01\x01\x00\x10\x81\x06\x00\x00\x00\x00" "\x83\x06\x00\x00\x00\x00\x00\x03\x00\x00\x0a\x00\x00\x0d\x00"; -#if 0 uint8_t ue_pco[7] = "\x80\x00\x0a\x00\x00\x0d\x00"; +#else + uint8_t ue_pco[35] = + "\x80\x80\x21\x10\x01\x00\x00\x10\x81\x06\x00\x00\x00\x00" + "\x83\x06\x00\x00\x00\x00\x00\x0c\x00\x00\x0d\x00\x00\x02\x00\x00" + "\x0a\x00\x00\x10\x00"; #endif test_ue_t *test_ue = NULL; @@ -138,9 +143,16 @@ ogs_pkbuf_t *testesm_build_esm_information_response(test_sess_t *sess) ogs_nas_protocol_configuration_options_t *protocol_configuration_options = &esm_information_response->protocol_configuration_options; +#if 0 uint8_t ue_pco[29] = "\x80\x80\x21\x10\x01\x01\x00\x10\x81\x06\x00\x00\x00\x00" "\x83\x06\x00\x00\x00\x00\x00\x03\x00\x00\x0a\x00\x00\x0d\x00"; +#else + uint8_t ue_pco[35] = + "\x80\x80\x21\x10\x01\x00\x00\x10\x81\x06\x00\x00\x00\x00" + "\x83\x06\x00\x00\x00\x00\x00\x0c\x00\x00\x0d\x00\x00\x02\x00\x00" + "\x0a\x00\x00\x10\x00"; +#endif test_ue_t *test_ue = NULL; ogs_pkbuf_t *pkbuf = NULL;