From 9774e7ab04c21e9cab5d4db8e55dd6053b26e822 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 29 Mar 2018 08:49:38 +0200 Subject: 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 --- library/RTP_Emulation.ttcn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/RTP_Emulation.ttcn b/library/RTP_Emulation.ttcn index 60f040a3..be4bcc43 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) { -- cgit v1.2.3