<div dir="ltr">Hi all,<div><br></div><div>I have problem when use module pusher on Kazoo.</div><div>The user after receive call from pusher can not receive the Cancel message if have another people pick up this phone.</div><div>I trace log and debug on Kamailio and see the Freeswitch sent Cancel message but Kamailio reply 481 - Call leg/transaction does not exist.</div><div><br></div><div>The configure on Kamailio: default.cfg</div><div>=======================================================</div><div><div><i>route[PREPARE_INITIAL_REQUESTS]</i></div><div><i>{</i></div><div><i>    if (is_method("CANCEL")) {</i></div><div><i>        if(t_lookup_cancel()) xlog("L_INFO","$ci|log|======== t_lookup_cancel()");</i></div><div><i>        xlog("L_INFO","$rm from $fu (IP:$si:$sp) ---CAPTURED IN MAIN---\n");</i></div><div><i>        if (t_check_trans()) {</i></div><div><i>            xlog("L_INFO","$rm from $fu (IP:$si:$sp) ---CHECK TRANS TRUE---\n");</i></div><div><i>            //xlog("L_INFO", "$ci|log|====================================");</i></div><div><i>            route(RELAY);</i></div><div><i>        } else {</i></div><div><i>            xlog("L_INFO","$rm from $fu (IP:$si:$sp) ---CHECK TRANS FALSE---\n");</i></div><div><i>            sl_send_reply("481", "Call leg/transaction does not exist");</i></div><div><i>        }</i></div><div><i>        exit();</i><br></div><div><i>    } else if (is_method("ACK")) {</i></div><div><i>        if (t_check_trans()) {</i></div><div><i>            route(RELAY);</i></div><div><i>        }</i></div><div><i>        exit();</i></div><div><i>    }</i></div></div><div><div>=======================================================</div><div></div></div><div><br></div><div>As I read on <a href="http://kamailio.org/docs/modules/4.3.x/modules/tm.html#tm.f.t_check_trans">http://kamailio.org/docs/modules/4.3.x/modules/tm.html#tm.f.t_check_trans</a></div><div>Kamailio see the cancel message not same the transaction INVITE message.</div><div><br></div><div>INVITE message:</div><div><div>------------------------------------------------------------------------</div><div>INVITE sip:100@quydang.htk.cvoice SIP/2.0</div><div>Via: SIP/2.0/UDP 192.168.1.77:11000;rport;branch=z9hG4bKK9jyp8mXUZHgS</div><div>Route: <sip:<a href="http://192.168.1.77:5060">192.168.1.77:5060</a>></div><div>Max-Forwards: 49</div><div>From: "02 quy" <sip:102@quydang.htk.cvoice>;tag=04K2SappeyDtj</div><div>To: <sip:100@quydang.htk.cvoice></div><div>Call-ID: 19fa9228-ef95-11e6-b473-1f645951fd7b</div><div>CSeq: 103030653 INVITE</div><div>Contact: <<a href="http://sip:mod_sofia@192.168.1.77:11000">sip:mod_sofia@192.168.1.77:11000</a>></div><div>User-Agent: Anttel</div><div>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE</div><div>Supported: path, replaces</div><div>Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer</div><div>Content-Type: application/sdp</div><div>Content-Disposition: session</div><div>Content-Length: 247</div><div>X-AUTH-IP: 192.168.1.141</div><div>X-AUTH-PORT: 64799</div><div>X-KAZOO-AOR: sip:100@quydang.htk.cvoice</div><div>X-KAZOO-PUSHER-Token-Proxy: sip:<a href="http://192.168.1.77:5060">192.168.1.77:5060</a></div><div>X-KAZOO-PUSHER-Token-ID: 803F0D6610AC5979C6F0513A3A4BE62E0BAF1530DC7A98C2C0DC13D784585FBE</div><div>X-KAZOO-PUSHER-Token-Type: apple</div><div>X-KAZOO-PUSHER-Token-App: com.htkinc</div><div>X-FS-Support: update_display,send_info</div><div>Remote-Party-ID: "02 quy" <sip:102@quydang.htk.cvoice>;party=calling;screen=yes;privacy=off</div><div><br></div><div>v=0</div><div>o=FreeSWITCH 1486708670 1486708671 IN IP4 192.168.1.77</div><div>s=FreeSWITCH</div><div>c=IN IP4 192.168.1.77</div><div>t=0 0</div><div>m=audio 24764 RTP/AVP 0 8 101 13</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>------------------------------------------------------------------------</div></div><div><br></div><div>CANCEL message:</div><div><div>------------------------------------------------------------------------</div><div>CANCEL sip:100@quydang.htk.cvoice SIP/2.0</div><div>Via: SIP/2.0/UDP 192.168.1.77:11000;rport;branch=z9hG4bKK9jyp8mXUZHgS</div><div>Route: <sip:<a href="http://192.168.1.77:5060">192.168.1.77:5060</a>></div><div>Max-Forwards: 49</div><div>From: "02 quy" <sip:102@quydang.htk.cvoice>;tag=04K2SappeyDtj</div><div>To: <sip:100@quydang.htk.cvoice></div><div>Call-ID: 19fa9228-ef95-11e6-b473-1f645951fd7b</div><div>CSeq: 103030653 CANCEL</div><div>Reason: SIP;cause=200;text="Call completed elsewhere"</div><div>Content-Length: 0</div><div>------------------------------------------------------------------------</div></div><div><br></div><div>How can I know it same transaction ? We have any idea to solve this problem ?</div><div>Thank for advice !</div><div><br></div><div>Regards,</div><div>Hai Bui<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Hai Bui<br></div><div>VoIP engineer, Cvoice team, HTK-HCM Office<br></div><div><div dir="ltr"><span><font color="#888888"><div>

<font color="#000066">Mobile: +84-165-618-9876<br></font></div><div><font color="#000066"></font><div><font color="#000066"></font></div></div></font></span></div></div></div></div></div></div></div></div>
</div></div>