MGCP_Test: test DLCX request to non existant endpoint

Since we now support wildcarded DLCX request, which so not necessarly
require a specific endpoint (the trunk is enough). We should also check
what happens when we send a DLCX request to a non existent endpoint. The
situation would be very similar. osmo-mgw will be unable to resolve the
endpoint, but the trunk will be resolved. However eventually the request
is not wildcarded and we expect that osmo-mgw is rejecting it.

Change-Id: I3d8c6f84404c1c95f97f113813528175523d36b8
Related: SYS#5535
This commit is contained in:
Philipp Maier 2021-07-20 14:22:53 +02:00
parent 55b905446c
commit 21c1cffcec
1 changed files with 22 additions and 0 deletions

View File

@ -1026,6 +1026,27 @@ module MGCP_Test {
setverdict(pass);
}
/* DLCX to non existing endpoint */
testcase TC_dlcx_non_existant_ep() runs on dummy_CT {
var template MgcpCommand cmd;
var MgcpResponse resp;
var MgcpEndpoint ep := c_mgw_ep_rtpbridge & "AA@" & c_mgw_domain;
var template MgcpResponse rtmpl := {
line := {
code := ("500"),
string := ?
},
params:= { },
sdp := omit
};
f_init(ep);
cmd := ts_DLCX(get_next_trans_id(), ep, '41234'H);
resp := mgcp_transceive_mgw(cmd, rtmpl);
setverdict(pass);
}
/* test valid wildcarded MDCX */
testcase TC_mdcx_wildcarded() runs on dummy_CT {
/* Note: A wildcarded MDCX is not allowed, so we expect the
@ -2459,6 +2480,7 @@ module MGCP_Test {
execute(TC_crcx_wildcarded_exhaust());
execute(TC_mdcx_without_crcx());
execute(TC_dlcx_without_crcx());
execute(TC_dlcx_non_existant_ep());
execute(TC_mdcx_wildcarded());
execute(TC_dlcx_wildcarded());
execute(TC_crcx_and_dlcx_ep_callid_connid());