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
This commit is contained in:
parent
a0976e9fde
commit
0a5d7e7920
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue