<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9691">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">MGCP_Test: ts_CRCX_no_lco: check media description instead of media attribute<br><br>The testcase ts_CRCX_no_lco looks at the media attributes to see<br>if it findes the expected default codec there. In this testcase<br>we expect PCMU/8000/1 as media attribute, but this is a codec from<br>the fixed payload type domain. The MGW may not list this info inside<br>the media attributes. Listing the payload type number in the media<br>description is sufficient. We should check this instead.<br><br>- Remove media attribute check<br>- Check meida description for PCMU (0)<br><br>Change-Id: I69600a1025e68011e8fc5d8bf22d842d9c63bf53<br>Related: OS#2658<br>---<br>M mgw/MGCP_Test.ttcn<br>1 file changed, 1 insertion(+), 1 deletion(-)<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/91/9691/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 26a0701..6868405 100644</span><br><span>--- a/mgw/MGCP_Test.ttcn</span><br><span>+++ b/mgw/MGCP_Test.ttcn</span><br><span>@@ -326,7 +326,7 @@</span><br><span>               /* See also OS#2658: Even when we omit the LCO information, we</span><br><span>                  expect the MGW to pick a sane payload type for us. This</span><br><span>              payload type should be visible in the SDP of the response. */</span><br><span style="color: hsl(0, 100%, 40%);">-                if (resp.sdp.media_list[0].attributes[0].rtpmap.attr_value != "0 PCMU/8000/1") {</span><br><span style="color: hsl(120, 100%, 40%);">+            if (resp.sdp.media_list[0].media_field.fmts[0] != "0") {</span><br><span>                   setverdict(fail, "SDP contains unexpected codec");</span><br><span>                 }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9691">change 9691</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/9691"/><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: I69600a1025e68011e8fc5d8bf22d842d9c63bf53 </div>
<div style="display:none"> Gerrit-Change-Number: 9691 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>