Harald Welte has submitted this change and it was merged.

Change subject: mgw: Don't use RTP_Endpoint anymore.  We use RTP_Emulation new.
......................................................................


mgw: Don't use RTP_Endpoint anymore.  We use RTP_Emulation new.

Change-Id: I6302412daaafc37c8e7740cce4806405d3086fa7
---
M mgw/MGCP_Test.ttcn
1 file changed, 0 insertions(+), 11 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index 007775c..4872aba 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -7,7 +7,6 @@
        import from MGCP_CodecPort_CtrlFunct all;
        import from RTP_CodecPort all;
        import from RTP_CodecPort_CtrlFunct all;
-       import from RTP_Endpoint all;
        import from RTP_Emulation all;
        import from IPL4asp_Types all;
 
@@ -19,12 +18,9 @@
         * class members in C++ */
        type component dummy_CT {
                port MGCP_CODEC_PT MGCP;
-               port RTP_CODEC_PT RTP;
                var boolean initialized := false;
                var ConnectionId g_mgcp_conn_id := -1;
                var integer g_trans_id;
-
-               var RtpEndpoint g_rtp_ep[2];
 
                var RTP_Emulation_CT vc_RTPEM[2];
                port RTPEM_CTRL_PT RTPEM[2];
@@ -73,13 +69,6 @@
                         * */
                        res := MGCP_CodecPort_CtrlFunct.f_IPL4_connect(MGCP, 
mp_remote_ip, mp_remote_udp_port, mp_local_ip, mp_local_udp_port, 0, { udp := 
{} });
                        g_mgcp_conn_id := res.connId;
-
-                       map(self:RTP, system:RTP_CODEC_PT);
-                       ssrc := float2int(rnd()*4294967296.0);
-                       rtp_endpoint_init(g_rtp_ep[0], mp_local_ip, 
mp_local_rtp_port_base, ssrc);
-                       rtp_endpoint_bind(RTP, g_rtp_ep[0]);
-                       rtp_endpoint_init(g_rtp_ep[1], mp_local_ip, 
mp_local_rtp_port_base+2, ssrc);
-                       rtp_endpoint_bind(RTP, g_rtp_ep[1]);
 
                        for (var integer i := 0; i < sizeof(vc_RTPEM); i := 
i+1) {
                                f_rtpem_init(vc_RTPEM[i], i);

-- 
To view, visit https://gerrit.osmocom.org/7585
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6302412daaafc37c8e7740cce4806405d3086fa7
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder

Reply via email to