<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24976">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">MGCP_Test: test DLCX request to non existant endpoint<br><br>Since we now support wildcarded DLCX request, which so not necessarly<br>require a specific endpoint (the trunk is enough). We should also check<br>what happens when we send a DLCX request to a non existent endpoint. The<br>situation would be very similar. osmo-mgw will be unable to resolve the<br>endpoint, but the trunk will be resolved. However eventually the request<br>is not wildcarded and we expect that osmo-mgw is rejecting it.<br><br>Change-Id: I3d8c6f84404c1c95f97f113813528175523d36b8<br>Related: SYS#5535<br>---<br>M mgw/MGCP_Test.ttcn<br>1 file changed, 22 insertions(+), 0 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/76/24976/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 f4d7812..8548ea4 100644</span><br><span>--- a/mgw/MGCP_Test.ttcn</span><br><span>+++ b/mgw/MGCP_Test.ttcn</span><br><span>@@ -1026,6 +1026,27 @@</span><br><span>                 setverdict(pass);</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* DLCX to non existing endpoint */</span><br><span style="color: hsl(120, 100%, 40%);">+   testcase TC_dlcx_non_existant_ep() runs on dummy_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+         var template MgcpCommand cmd;</span><br><span style="color: hsl(120, 100%, 40%);">+         var MgcpResponse resp;</span><br><span style="color: hsl(120, 100%, 40%);">+                var MgcpEndpoint ep := c_mgw_ep_rtpbridge & "AA@" & c_mgw_domain;</span><br><span style="color: hsl(120, 100%, 40%);">+           var template MgcpResponse rtmpl := {</span><br><span style="color: hsl(120, 100%, 40%);">+                  line := {</span><br><span style="color: hsl(120, 100%, 40%);">+                             code := ("500"),</span><br><span style="color: hsl(120, 100%, 40%);">+                            string := ?</span><br><span style="color: hsl(120, 100%, 40%);">+                   },</span><br><span style="color: hsl(120, 100%, 40%);">+                    params:= { },</span><br><span style="color: hsl(120, 100%, 40%);">+                 sdp := omit</span><br><span style="color: hsl(120, 100%, 40%);">+           };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+          f_init(ep);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+         cmd := ts_DLCX(get_next_trans_id(), ep, '41234'H);</span><br><span style="color: hsl(120, 100%, 40%);">+            resp := mgcp_transceive_mgw(cmd, rtmpl);</span><br><span style="color: hsl(120, 100%, 40%);">+              setverdict(pass);</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  /* test valid wildcarded MDCX */</span><br><span>     testcase TC_mdcx_wildcarded() runs on dummy_CT {</span><br><span>              /* Note: A wildcarded MDCX is not allowed, so we expect the</span><br><span>@@ -2459,6 +2480,7 @@</span><br><span>                 execute(TC_crcx_wildcarded_exhaust());</span><br><span>               execute(TC_mdcx_without_crcx());</span><br><span>             execute(TC_dlcx_without_crcx());</span><br><span style="color: hsl(120, 100%, 40%);">+              execute(TC_dlcx_non_existant_ep());</span><br><span>          execute(TC_mdcx_wildcarded());</span><br><span>               execute(TC_dlcx_wildcarded());</span><br><span>               execute(TC_crcx_and_dlcx_ep_callid_connid());</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24976">change 24976</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/c/osmo-ttcn3-hacks/+/24976"/><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-Change-Id: I3d8c6f84404c1c95f97f113813528175523d36b8 </div>
<div style="display:none"> Gerrit-Change-Number: 24976 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>