summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-25 20:02:37 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-25 20:56:51 +0200
commit79f3f54f2c3e3220dbaddac4f20d4d94c3e3c9fc (patch)
treebe29b8eca1a46679e4bb1a612334c626a71545cc
parented848519f0b31cf7afde4c288cfb83606bc67cc7 (diff)
bsc: Don't expect codec list in IPA/SCCPlite case
In classic non-AoIP-cases, OsmoBSC should simply return the chosen speech version, but not any codec list in the BSSMAP ASSIGNMENT COMPLETE message. Let's adjust the expectations accordingly. Related: OS#2544 Change-Id: Id8e2a749bce91cfadd316bc2d56d1289412b9026
-rw-r--r--bsc/BSC_Tests.ttcn8
1 files changed, 5 insertions, 3 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 95b7625..2534cf6 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -1737,11 +1737,13 @@ private function f_TC_assignment_codec(charstring id) runs on MSC_ConnHdlr {
var template PDU_BSSAP exp_compl := f_gen_exp_compl();
/* puzzle together the ASSIGNMENT REQ for given codec[s] */
- ass_cmd.pdu.bssmap.assignmentRequest.codecList := g_pars.ass_codec_list;
+ if (mp_bssap_cfg.transport == BSSAP_TRANSPORT_AoIP) {
+ ass_cmd.pdu.bssmap.assignmentRequest.codecList := g_pars.ass_codec_list;
+ exp_compl.pdu.bssmap.assignmentComplete.speechCodec.codecElements[0] :=
+ g_pars.ass_codec_list.codecElements[0];
+ }
ass_cmd.pdu.bssmap.assignmentRequest.channelType :=
f_BSSMAP_chtype_from_codec(g_pars.ass_codec_list.codecElements[0]);
- exp_compl.pdu.bssmap.assignmentComplete.speechCodec.codecElements[0] :=
- g_pars.ass_codec_list.codecElements[0];
log("expecting ASS COMPL like this: ", exp_compl);
f_establish_fully(ass_cmd, exp_compl);