pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37396?usp=email ) Change subject: asterisk: Log unexpected AMI msg ...................................................................... asterisk: Log unexpected AMI msg Change-Id: I406a00a54cb6d956e465001b8da0b14ea3e24195 --- M asterisk/Asterisk_Tests.ttcn 1 file changed, 21 insertions(+), 3 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/asterisk/Asterisk_Tests.ttcn b/asterisk/Asterisk_Tests.ttcn index 6fe5577..ca1ec72 100644 --- a/asterisk/Asterisk_Tests.ttcn +++ b/asterisk/Asterisk_Tests.ttcn @@ -421,9 +421,18 @@ f_str_tolower(oct2str(pars.subscr.auth.ik))); if (exp_ami_ev_registered) { - AMI_CLIENT.receive(tr_AMI_Event_Registry(f_sip_SipAddr_to_str(pars.subscr.local_sip_record), - "sip:" & mp_ims_domain, - "Registered")); + var AMI_Msg ami_msg_rx; + var template (present) AMI_Msg ami_msg_exp := + tr_AMI_Event_Registry(f_sip_SipAddr_to_str(pars.subscr.local_sip_record), + "sip:" & mp_ims_domain, + "Registered"); + alt { + [] AMI_CLIENT.receive(ami_msg_exp); + [] AMI_CLIENT.receive(AMI_Msg:?) -> value ami_msg_rx { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str("Unexpected AMI msg: ", ami_msg_rx, " vs exp: ", ami_msg_exp)); + } + } } } [resync] AMI_CLIENT.receive(tr_AMI_Event_AuthRequest(mp_volte_ims_outbound_registration, -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37396?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I406a00a54cb6d956e465001b8da0b14ea3e24195 Gerrit-Change-Number: 37396 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-MessageType: merged