aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-12-28 14:16:21 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-28 14:21:03 +0100
commitf91edf3b490b7dc615cfbb495376faecb45d75d0 (patch)
treeb28805c1dd32368d938c9fb981b7557afdb1678d
parent33d8216ab4cd5b166c62f35d21c602ba61bdd616 (diff)
MGCP_Test: be more liberal in some of the error codes we expect
Sometimes it's not entirely clear which error code should be returned, so let's accept multiple options, depending on the situation Change-Id: I6d6eaec4d025b9da170f59c759884afe2e768521
-rw-r--r--mgw/MGCP_Test.ttcn9
1 files changed, 4 insertions, 5 deletions
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index 7c3889af..516944a8 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -212,7 +212,7 @@ module MGCP_Test {
/* Send DLCX and expect OK response */
function f_dlcx_ok(MgcpEndpoint ep, template MgcpCallId call_id := omit,
template MgcpConnectionId conn_id := omit) runs on dummy_CT {
- f_dlcx(ep, "200", "OK", call_id, conn_id);
+ f_dlcx(ep, ("200","250"), "OK", call_id, conn_id);
}
/* Send DLCX and accept any response */
@@ -296,7 +296,7 @@ module MGCP_Test {
var template MgcpCommand cmd;
var MgcpResponse resp;
var MgcpEndpoint ep := "2@mgw";
- var template MgcpResponse rtmpl := tr_MgcpResp_Err("400");
+ var template MgcpResponse rtmpl := tr_MgcpResp_Err(("400","516"));
f_init(ep);
@@ -316,7 +316,7 @@ module MGCP_Test {
var MgcpResponse resp;
var MgcpEndpoint ep := "2@mgw";
var MgcpCallId call_id := '1229'H;
- var template MgcpResponse rtmpl := tr_MgcpResp_Err("400");
+ var template MgcpResponse rtmpl := tr_MgcpResp_Err(("400","517"));
f_init(ep);
@@ -420,8 +420,7 @@ module MGCP_Test {
var MgcpEndpoint ep := "4@mgw";
var template MgcpResponse rtmpl := {
line := {
- /* TODO: accept/enforce better error? */
- code := "400",
+ code := ("400", "515"),
string := ?
},
params:= { },