summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-29 08:49:38 +0200
committerHarald Welte <laforge@gnumonks.org>2018-03-29 08:49:38 +0200
commit9774e7ab04c21e9cab5d4db8e55dd6053b26e822 (patch)
tree76dbd2b66135e3c6b8ed32c2162a5fe851ace740
parentcb8b427db14d9f5fb19df350f556abdb551debc0 (diff)
RTP_Emulation: Fix receive templates
The connection ID part of the template must be updated after we created the respective sockets. It was done to early. Change-Id: I37306d841df3d27d30fd89fb99c863370517e3ff
-rw-r--r--library/RTP_Emulation.ttcn4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/RTP_Emulation.ttcn b/library/RTP_Emulation.ttcn
index 60f040a..be4bcc4 100644
--- a/library/RTP_Emulation.ttcn
+++ b/library/RTP_Emulation.ttcn
@@ -206,9 +206,7 @@ function f_main() runs on RTP_Emulation_CT
};
var template RTP_RecvFrom tr_rtp := tr;
var template RTP_RecvFrom tr_rtcp := tr;
- tr_rtp.connId := g_rtp_conn_id;
tr_rtp.msg := { rtp := ? };
- tr_rtp.connId := g_rtcp_conn_id;
tr_rtcp.msg := { rtcp := ? };
g_iuup_ent := valueof(t_IuUP_Entity(g_cfg.iuup_tx_init));
@@ -225,9 +223,11 @@ function f_main() runs on RTP_Emulation_CT
res := RTP_CodecPort_CtrlFunct.f_IPL4_listen(RTP, g_local_host,
g_local_port, {udp:={}});
g_rtp_conn_id := res.connId;
+ tr_rtp.connId := g_rtp_conn_id;
res := RTP_CodecPort_CtrlFunct.f_IPL4_listen(RTP, g_local_host,
g_local_port+1, {udp:={}});
g_rtcp_conn_id := res.connId;
+ tr_rtcp.connId := g_rtcp_conn_id;
CTRL.reply(RTPEM_bind:{g_local_host, g_local_port});
}
[] CTRL.getcall(RTPEM_connect:{?,?}) -> param (g_remote_host, g_remote_port) {