aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-07-16 15:13:11 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2018-07-17 09:37:49 +0200
commit0a5d7e79208e59d6096e93e247108a3c1bb05a0c (patch)
tree00dd04d46bf2fe81eb729c3921f2fe4b51907237
parenta0976e9fde022cebbcf20bc859f2d4acace39005 (diff)
MSC_ConnectionHandler: more verbosity for f_check_mgcp_expectations()
The function f_check_mgcp_expectations() checks the counters that count the occurrence of MDCX and CRCX messages against computed expected values. At the moment it is not easy to spot where exactly the deviation occurred. Lets add some log output so that we can see which type of message on which connection was missing or too much. Also add a string parameter that is set to the calling functions name so that we know from where the check has been triggered. - Add more verbose log output for counters - Add parameter to prepend to the log line Change-Id: Ida0eba4ef3c1db977d392267ef76ec37b87133b3 Related: OS#3292
-rw-r--r--bsc/MSC_ConnectionHandler.ttcn4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn
index 94cd9ef5..63d017fb 100644
--- a/bsc/MSC_ConnectionHandler.ttcn
+++ b/bsc/MSC_ConnectionHandler.ttcn
@@ -796,6 +796,10 @@ function f_ass_patch_lcls(inout template (omit) PDU_BSSAP ass_tpl,
* expected */
function f_check_mgcp_expectations() runs on MSC_ConnHdlr {
for (var integer i:= 0; i < sizeof(g_media.mgcp_conn); i := i+1) {
+ log(testcasename(), ": Check MGCP test expectations for g_media.mgcp_conn[", i , "]:",
+ " crcx_seen=", g_media.mgcp_conn[i].crcx_seen, ", crcx_seen_exp=", g_media.mgcp_conn[i].crcx_seen_exp,
+ ", mdcx_seen=", g_media.mgcp_conn[i].mdcx_seen, ", mdcx_seen_exp=", g_media.mgcp_conn[i].mdcx_seen_exp);
+
if(g_media.mgcp_conn[i].crcx_seen != g_media.mgcp_conn[i].crcx_seen_exp) {
setverdict(fail, "unexpected number of MGW-CRCX transactions");
}