Change in osmo-ttcn3-hacks[master]: MGCP_Test: ts_CRCX_no_lco: check media description instead of media a...

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Jun 23 11:40:04 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9691 )

Change subject: MGCP_Test: ts_CRCX_no_lco: check media description instead of media attribute
......................................................................

MGCP_Test: ts_CRCX_no_lco: check media description instead of media attribute

The testcase ts_CRCX_no_lco looks at the media attributes to see
if it findes the expected default codec there. In this testcase
we expect PCMU/8000/1 as media attribute, but this is a codec from
the fixed payload type domain. The MGW may not list this info inside
the media attributes. Listing the payload type number in the media
description is sufficient. We should check this instead.

- Remove media attribute check
- Check meida description for PCMU (0)

Change-Id: I69600a1025e68011e8fc5d8bf22d842d9c63bf53
Related: OS#2658
---
M mgw/MGCP_Test.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index 26a0701..6868405 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -326,7 +326,7 @@
 		/* See also OS#2658: Even when we omit the LCO information, we
 		   expect the MGW to pick a sane payload type for us. This
 		   payload type should be visible in the SDP of the response. */
-		if (resp.sdp.media_list[0].attributes[0].rtpmap.attr_value != "0 PCMU/8000/1") {
+		if (resp.sdp.media_list[0].media_field.fmts[0] != "0") {
 			setverdict(fail, "SDP contains unexpected codec");
 		}
 

-- 
To view, visit https://gerrit.osmocom.org/9691
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I69600a1025e68011e8fc5d8bf22d842d9c63bf53
Gerrit-Change-Number: 9691
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180623/3333c4e3/attachment.htm>


More information about the gerrit-log mailing list