mgw: Include mandatory connection-id in MDCX
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index 77ec3a5..13c565a 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -142,11 +142,12 @@
sdp := ?
}
- template MgcpCommand ts_MDCX(MgcpTransId trans_id, charstring ep, MgcpConnectionMode mode, MgcpCallId call_id, template SDP_Message sdp := omit) := {
+ template MgcpCommand ts_MDCX(MgcpTransId trans_id, charstring ep, MgcpConnectionMode mode, MgcpCallId call_id, MgcpConnectionId conn_id, template SDP_Message sdp := omit) := {
line := t_MgcpCmdLine("MDCX", trans_id, ep),
params := {
t_MgcpParConnMode(mode),
ts_MgcpParCallId(call_id),
+ ts_MgcpParConnectionId(conn_id),
//t_MgcpParReqId(omit),
t_MgcpParLocConnOpt("p:20, a:PCMU")
},
@@ -585,7 +586,7 @@
f_init(ep);
- cmd := ts_MDCX(get_next_trans_id(), ep, "sendrecv", call_id);
+ cmd := ts_MDCX(get_next_trans_id(), ep, "sendrecv", call_id, call_id);
cmd.sdp := ts_SDP("127.0.0.1", "127.0.0.2", "23", "42", 2344, { "98" },
{ valueof(ts_SDP_rtpmap(98, "AMR/8000")),
valueof(ts_SDP_ptime(20)) });