Hello,
can you provide pcap (or full ngrep output) for all messages of such a call, from initial invite, including all responses and the other requests? The sip trace has to be taken on kamailio server.
Kamailio doesn't send 481 from the C code in the case of call, it either receives it or it is something in config.
Cheers,
Daniel
Hi all,
I have problem when use module pusher on Kazoo.The user after receive call from pusher can not receive the Cancel message if have another people pick up this phone.I trace log and debug on Kamailio and see the Freeswitch sent Cancel message but Kamailio reply 481 - Call leg/transaction does not exist.
The configure on Kamailio: default.cfg=======================================================route[PREPARE_INITIAL_REQUESTS]{if (is_method("CANCEL")) {if(t_lookup_cancel()) xlog("L_INFO","$ci|log|======== t_lookup_cancel()");xlog("L_INFO","$rm from $fu (IP:$si:$sp) ---CAPTURED IN MAIN---\n");if (t_check_trans()) {xlog("L_INFO","$rm from $fu (IP:$si:$sp) ---CHECK TRANS TRUE---\n");//xlog("L_INFO", "$ci|log|====================================");route(RELAY);} else {xlog("L_INFO","$rm from $fu (IP:$si:$sp) ---CHECK TRANS FALSE---\n");sl_send_reply("481", "Call leg/transaction does not exist");}exit();
} else if (is_method("ACK")) {if (t_check_trans()) {route(RELAY);}exit();}=======================================================
Kamailio see the cancel message not same the transaction INVITE message.
INVITE message:------------------------------------------------------------------------INVITE sip:100@quydang.htk.cvoice SIP/2.0Via: SIP/2.0/UDP 192.168.1.77:11000;rport;branch=z9hG4bKK9jyp8mXUZHgSRoute: <sip:192.168.1.77:5060>Max-Forwards: 49From: "02 quy" <sip:102@quydang.htk.cvoice>;tag=04K2SappeyDtjCall-ID: 19fa9228-ef95-11e6-b473-1f645951fd7bCSeq: 103030653 INVITEContact: <sip:mod_sofia@192.168.1.77:11000>User-Agent: AnttelAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBESupported: path, replacesAllow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, referContent-Type: application/sdpContent-Disposition: sessionContent-Length: 247X-AUTH-IP: 192.168.1.141X-AUTH-PORT: 64799X-KAZOO-AOR: sip:100@quydang.htk.cvoiceX-KAZOO-PUSHER-Token-Proxy: sip:192.168.1.77:5060X-KAZOO-PUSHER-Token-ID: 803F0D6610AC5979C6F0513A3A4BE62E0BAF1530DC7A98C2C0DC13D784585FBEX-KAZOO-PUSHER-Token-Type: appleX-KAZOO-PUSHER-Token-App: com.htkincX-FS-Support: update_display,send_infoRemote-Party-ID: "02 quy" <sip:102@quydang.htk.cvoice>;party=calling;screen=yes;privacy=off
v=0o=FreeSWITCH 1486708670 1486708671 IN IP4 192.168.1.77s=FreeSWITCHc=IN IP4 192.168.1.77t=0 0m=audio 24764 RTP/AVP 0 8 101 13a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20------------------------------------------------------------------------
CANCEL message:------------------------------------------------------------------------CANCEL sip:100@quydang.htk.cvoice SIP/2.0Via: SIP/2.0/UDP 192.168.1.77:11000;rport;branch=z9hG4bKK9jyp8mXUZHgSRoute: <sip:192.168.1.77:5060>Max-Forwards: 49From: "02 quy" <sip:102@quydang.htk.cvoice>;tag=04K2SappeyDtjCall-ID: 19fa9228-ef95-11e6-b473-1f645951fd7bCSeq: 103030653 CANCELReason: SIP;cause=200;text="Call completed elsewhere"Content-Length: 0------------------------------------------------------------------------
How can I know it same transaction ? We have any idea to solve this problem ?Thank for advice !
Regards,Hai Bui
--
Hai Bui
VoIP engineer, Cvoice team, HTK-HCM Office
Mobile: +84-165-618-9876
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com