mgw: Introduce test TC_auep_null
Related: SYS#6481
Change-Id: I9395cd526cf626974fb0e2ed93ff5d95a433d8c0
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index 0759006..7d01b97 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -686,6 +686,18 @@
}
}
+ /* Send an AuditEndpoint message to the MGW */
+ function f_auep(charstring ep_prefix) runs on dummy_CT {
+ var MgcpEndpoint ep := ep_prefix & "@" & c_mgw_domain;
+ var template MgcpCommand cmd;
+ var MgcpResponse resp;
+
+ f_init(ep);
+
+ cmd := ts_AUEP(get_next_trans_id(), ep);
+ resp := mgcp_transceive_mgw(cmd, tr_AUEP_ACK);
+ }
+
function f_crcx(charstring ep_prefix) runs on dummy_CT {
var MgcpEndpoint ep := ep_prefix & "2@" & c_mgw_domain;
var template MgcpCommand cmd;
@@ -771,6 +783,12 @@
f_dlcx_ok(ep, call_id);
}
+ /* test valid AUEP towards "null" endpoint */
+ testcase TC_auep_null() runs on dummy_CT {
+ f_auep("null");
+ setverdict(pass);
+ }
+
/* test valid CRCX without SDP */
testcase TC_crcx() runs on dummy_CT {
f_crcx(c_mgw_ep_rtpbridge);
@@ -3010,6 +3028,7 @@
control {
execute(TC_selftest());
+ execute(TC_auep_null());
execute(TC_crcx());
execute(TC_crcx_no_lco());
execute(TC_crcx_noprefix());