<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9787">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">MGCP_Test: do not use constant IP addresses<br><br>The RTP stream tests TC_two_crcx_and_unsolicited_rtp and<br>TC_two_crcx_and_one_mdcx_rtp_ho, which were introduced recently<br>with Change-Id I556a6efff0e74aab897bd8165200eec36e46629f, use<br>hardcoded ip addresses (127.0.0.1) to establish the RTP streams<br>that are used to test how the MGW reacts on unsolicited packets.<br>This works fine when everything runs on local host but on docker<br>it failes since the containers there have different ip-addresses.<br><br>- replace hardcoded IP-Addresses with modulepar variable in<br>  TC_two_crcx_and_unsolicited_rtp and TC_two_crcx_and_one_mdcx_rtp_ho<br><br>Change-Id: I5af5186f173c2b8564e8034249c82245acdd09f6<br>Related: OS#2703<br>---<br>M mgw/MGCP_Test.ttcn<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/87/9787/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn</span><br><span>index 8746c38..d816a71 100644</span><br><span>--- a/mgw/MGCP_Test.ttcn</span><br><span>+++ b/mgw/MGCP_Test.ttcn</span><br><span>@@ -1164,8 +1164,8 @@</span><br><span>          f_sleep(0.5);</span><br><span> </span><br><span>            /* Start inserting unsolicited RTP packets */</span><br><span style="color: hsl(0, 100%, 40%);">-           f_rtpem_bind(RTPEM[2], "127.0.0.1", unsolicited_port);</span><br><span style="color: hsl(0, 100%, 40%);">-                f_rtpem_connect(RTPEM[2], "127.0.0.1", flow[0].mgw.portnr);</span><br><span style="color: hsl(120, 100%, 40%);">+         f_rtpem_bind(RTPEM[2], mp_local_ip, unsolicited_port);</span><br><span style="color: hsl(120, 100%, 40%);">+                f_rtpem_connect(RTPEM[2], mp_remote_ip, flow[0].mgw.portnr);</span><br><span>                 f_rtpem_mode(RTPEM[2], RTPEM_MODE_TXONLY);</span><br><span> </span><br><span>               f_sleep(0.5);</span><br><span>@@ -1219,8 +1219,8 @@</span><br><span>                 * transmitting for a while. We simulate this by injecting</span><br><span>            * some unsolicited packets on the behalf of the old source,</span><br><span>                  * (old remote port) */</span><br><span style="color: hsl(0, 100%, 40%);">-         f_rtpem_bind(RTPEM[2], "127.0.0.1", port_old);</span><br><span style="color: hsl(0, 100%, 40%);">-                f_rtpem_connect(RTPEM[2], "127.0.0.1", flow[0].mgw.portnr);</span><br><span style="color: hsl(120, 100%, 40%);">+         f_rtpem_bind(RTPEM[2], mp_local_ip, port_old);</span><br><span style="color: hsl(120, 100%, 40%);">+                f_rtpem_connect(RTPEM[2], mp_remote_ip, flow[0].mgw.portnr);</span><br><span>                 f_rtpem_mode(RTPEM[2], RTPEM_MODE_TXONLY);</span><br><span>           f_sleep(1.0);</span><br><span>                f_rtpem_mode(RTPEM[2], RTPEM_MODE_NONE);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9787">change 9787</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9787"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5af5186f173c2b8564e8034249c82245acdd09f6 </div>
<div style="display:none"> Gerrit-Change-Number: 9787 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>