diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2018-08-01 11:19:39 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2018-08-01 17:55:54 +0200 |
commit | 43a1a0be9e8ce4701dbe81ce9809bac1bca794e6 (patch) | |
tree | c59d13daad86898ceedeca7464e866bd58951161 /mgw | |
parent | cbef398fe8c907dd847e7f3c364d27722f1ecf4a (diff) |
mgw: Don't try to send packets while MDCX is underway
TC_two_crcx_and_one_mdcx_rtp_ho sometimes failed while trying to send an
RTP packet without a connected port. f_flow_modify re-bind()s the port,
sends the MDCX and then connect()s it after the MDCX ACK returned the
IP/port combination.
If the transmit timer fires off between the bind and connect the
resulting send call will fail.
Change-Id: Idf93ceb830a44dafa56430ab5178f05da6bdd6fb
Diffstat (limited to 'mgw')
-rw-r--r-- | mgw/MGCP_Test.ttcn | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn index 494e8bba..e1ebc261 100644 --- a/mgw/MGCP_Test.ttcn +++ b/mgw/MGCP_Test.ttcn @@ -1258,7 +1258,9 @@ module MGCP_Test { /* Now switch the flow over to a new port (BTS) */ port_old := flow[0].em.portnr; flow[0].em.portnr := 10002; + f_rtpem_mode(RTPEM[0], RTPEM_MODE_RXONLY); f_flow_modify(RTPEM[0], ep, call_id, "sendrecv", flow[0]); + f_rtpem_mode(RTPEM[0], RTPEM_MODE_BIDIR); /* When handing over a call, the old source may still keep * transmitting for a while. We simulate this by injecting |