Change in osmo-ttcn3-hacks[master]: MGCP_Test: fix TC_one_crcx_loopback_rtp_implicit

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon May 17 20:32:09 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24250 )

Change subject: MGCP_Test: fix TC_one_crcx_loopback_rtp_implicit
......................................................................

MGCP_Test: fix TC_one_crcx_loopback_rtp_implicit

The testcase TC_one_crcx_loopback_rtp_implicit uses
f_TC_one_crcx_loopback_rtp, which creates the RTP flow with IPv4
addresses but since we do not send a local RTP IP address with the CRCX
to the MGW, the MGW will prefer IPv6, which means that we get an IPv6
address back while the RTP strem is IPv4 on the TTCN3 side.

Related: OS#5123
Change-Id: I80498737d5b32f28b62e0c17cce1969b54af948c
---
M mgw/MGCP_Test.ttcn
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index c4f97a8..5575f7a 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -1693,14 +1693,14 @@
 
 	/* Create one connection in loopback mode, test if the RTP packets are
 	 * actually reflected */
-	function f_TC_one_crcx_loopback_rtp(boolean one_phase := true) runs on dummy_CT {
+	function f_TC_one_crcx_loopback_rtp(charstring local_ip, charstring remote_ip, boolean one_phase := true) runs on dummy_CT {
 		var RtpFlowData flow;
 		var MgcpEndpoint ep := c_mgw_ep_rtpbridge & "1@" & c_mgw_domain;
 		var MgcpCallId call_id := '1225'H;
 		var RtpemStats stats;
 
 		f_init(ep);
-		flow := valueof(t_RtpFlow(mp_local_ipv4, mp_remote_ipv4, 111, "GSM-HR-08/8000/1"));
+		flow := valueof(t_RtpFlow(local_ip, remote_ip, 111, "GSM-HR-08/8000/1"));
 		flow.em.portnr := 10000;
 		f_flow_create(RTPEM[0], ep, call_id, "loopback", flow, one_phase := one_phase);
 
@@ -1725,7 +1725,7 @@
 	/* Create one connection in loopback mode, test if the RTP packets are
 	 * actually reflected */
 	testcase TC_one_crcx_loopback_rtp() runs on dummy_CT {
-		 f_TC_one_crcx_loopback_rtp(one_phase := true)
+		 f_TC_one_crcx_loopback_rtp(mp_local_ipv4, mp_remote_ipv4, one_phase := true)
 	}
 
 	/* Same as above, but we will intenionally not tell the MGW where to
@@ -1733,7 +1733,7 @@
 	 * loopback mode, so the MGW should take the originating address from
 	 * the incoming RTP packet and send it back to the source */
 	testcase TC_one_crcx_loopback_rtp_implicit() runs on dummy_CT {
-		 f_TC_one_crcx_loopback_rtp(one_phase := false)
+		 f_TC_one_crcx_loopback_rtp(mp_local_ipv6, mp_remote_ipv6, one_phase := false)
 	}
 
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24250
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I80498737d5b32f28b62e0c17cce1969b54af948c
Gerrit-Change-Number: 24250
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210517/c1a301b0/attachment.htm>


More information about the gerrit-log mailing list