summaryrefslogtreecommitdiffstats
path: root/tests/gsm0808
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-01-08 14:44:24 +0100
committerHarald Welte <laforge@gnumonks.org>2019-01-19 21:03:56 +0000
commit414c8f565b68199fe1d7dd5d179252127a58ecaf (patch)
treea43aafa1a263ac56d6e4f60870a045028856d537 /tests/gsm0808
parentd6ef6f1b9163be659693bb546276ab2f655f9cb9 (diff)
LCLS: add status parameter to Assignment Completed message
* add gsm0808_create_ass_compl2() with additional gsm0808_lcls_status parameter and make gsm0808_create_ass_compl() into trivial wrapper around it * update tests accordingly Change-Id: I547c6b8707123aa8c1ef636db88908df112d90a4 Related: OS#2487
Diffstat (limited to 'tests/gsm0808')
-rw-r--r--tests/gsm0808/gsm0808_test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c
index 546a487b..e5c1fd37 100644
--- a/tests/gsm0808/gsm0808_test.c
+++ b/tests/gsm0808/gsm0808_test.c
@@ -510,11 +510,12 @@ static void test_create_ass_compl_aoip()
struct gsm0808_speech_codec sc;
struct gsm0808_speech_codec_list sc_list;
static const uint8_t res[] =
- { 0x00, 0x1d, 0x02, 0x15, 0x23, 0x21, 0x42, 0x2c, 0x11, 0x40, 0x22,
+ { 0x00, 0x1f, 0x02, 0x15, 0x23, 0x21, 0x42, 0x2c, 0x11, 0x40, 0x22,
GSM0808_IE_AOIP_TRASP_ADDR, 0x06, 0xc0, 0xa8, 0x64, 0x17, 0x04,
0xd2, GSM0808_IE_SPEECH_CODEC, 0x01, GSM0808_SCT_HR1 | 0x90,
GSM0808_IE_SPEECH_CODEC_LIST, 0x07, GSM0808_SCT_FR3 | 0x50, 0xef,
- 0xcd, GSM0808_SCT_FR2 | 0xa0, 0x9f, GSM0808_SCT_CSD | 0x90, 0xc0 };
+ 0xcd, GSM0808_SCT_FR2 | 0xa0, 0x9f, GSM0808_SCT_CSD | 0x90, 0xc0,
+ GSM0808_IE_LCLS_BSS_STATUS, GSM0808_LCLS_STS_LOCALLY_SWITCHED };
struct msgb *msg;
memset(&sin, 0, sizeof(sin));
@@ -533,8 +534,8 @@ static void test_create_ass_compl_aoip()
setup_codec_list(&sc_list);
printf("Testing creating Assignment Complete (AoIP)\n");
- msg = gsm0808_create_ass_compl(0x23, 0x42, 0x11, 0x22,
- &ss, &sc, &sc_list);
+ msg = gsm0808_create_ass_compl2(0x23, 0x42, 0x11, 0x22,
+ &ss, &sc, &sc_list, GSM0808_LCLS_STS_LOCALLY_SWITCHED);
VERIFY(msg, res, ARRAY_SIZE(res));
msgb_free(msg);
}