pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37490?usp=email )


Change subject: asterisk: sip: Fail rx unexpected msg during unregister
......................................................................

asterisk: sip: Fail rx unexpected msg during unregister

Change-Id: Ibcf65b22925e990e4d13661204eaba1b471b6a5d
---
M asterisk/SIP_ConnectionHandler.ttcn
1 file changed, 12 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/90/37490/1

diff --git a/asterisk/SIP_ConnectionHandler.ttcn 
b/asterisk/SIP_ConnectionHandler.ttcn
index c3d955a..5f76ad2 100644
--- a/asterisk/SIP_ConnectionHandler.ttcn
+++ b/asterisk/SIP_ConnectionHandler.ttcn
@@ -350,6 +350,7 @@

        via.viaBody[0].viaParams := f_sip_param_set(via.viaBody[0].viaParams, 
"branch", branch_value);
        from_addr.fromParams := f_sip_param_set(from_addr.fromParams, "tag", 
f_sip_rand_tag());
+       SIP.clear;
        SIP.send(ts_SIP_REGISTER(g_pars.registrar_sip_req_uri,
                                 g_pars.registrar_sip_call_id,
                                 from_addr,
@@ -416,6 +417,8 @@
                                g_pars.registrar_sip_seq_nr, "OK");
                as_SIP_expect_resp(exp);
                }
+       [] as_SIP_fail_resp("(un)REGISTER 200 OK");
+       [] as_SIP_fail_req("(un)REGISTER 200 OK");
        }

        /* Prepare for next use: */

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37490?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: Ibcf65b22925e990e4d13661204eaba1b471b6a5d
Gerrit-Change-Number: 37490
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to