<div dir="ltr">Hi Daniel,<div><br></div><div>I send you 2 files pcap, capture on server side.</div><div>+ Server: 192.168.1.77</div><div>+ Client: 192.168.1.134</div><div>+ Scenario: </div><div> User 102 call to ring group 777 - has user 100 (192.168.1.134) and user 101 (192.168.1.164).</div><div> User 100 is offline but it's configured push notification from Apple to wake up, register and receive INVITE. </div><div> I pick up phone on 101 but 100 can not receive the CANCEL message to stop the ringing tone.</div><div><br></div><div>1) Pusher_ok.pcap: User 100 can revice the CANCEL message.</div><div>2) Pusher_failed.pcap: As I told above, when user 101 pick up the phone, Freeswitch send CANCEL message to user 100. But when message go to Kamailio, <span style="font-size:12.8px">Kamailio reply 481 - Call leg/transaction does not exist. (I can't capture this packets).</span></div><div><span style="font-size:12.8px">I also include the log on Freeswitch send CANCEL message and revice the 481.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"> </span>Kamailio doesn't send 481 from the C code in the case of call, it either receives it or it is something in config.</div><div>=> This is configure on kamailio: <span style="font-size:12.8px">default.cfg, it check </span><span style="font-size:12.8px"><b>t_check_trans()</b></span></div><div><div style="font-size:12.8px">==============================<wbr>=========================</div><div style="font-size:12.8px"><div><i>route[PREPARE_INITIAL_<wbr>REQUESTS]</i></div><div><i>{</i></div><div><i> if (is_method("CANCEL")) {</i></div><div><i style="font-size:12.8px"> if (t_check_trans()) {</i><br></div><div><i style="font-size:12.8px"> route(RELAY);</i><br></div><div><i> } else {</i></div><div><i style="font-size:12.8px"> sl_send_reply("481", "Call leg/transaction does not exist");</i><br></div><div><i> }</i></div><div><i> exit();</i></div></div><div style="font-size:12.8px"><div>==============================<wbr>=========================</div><div></div></div></div><div><br></div><div>Thank for your support !</div><div><br></div><div>Regards,</div><div>Hai Bui</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 8:27 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hello,</p>
<p>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.</p>
<p>Kamailio doesn't send 481 from the C code in the case of call, it
either receives it or it is something in config.</p>
<p>Cheers,<br>
Daniel<br>
</p><div><div class="gmail-m_-8684212836942980917gmail-h5">
<br>
<div class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-cite-prefix">On 09/03/2017 06:59, Hai Bui Duc Ha
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="gmail-m_-8684212836942980917gmail-h5">
<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>==============================<wbr>=========================</div>
<div>
<div><i>route[PREPARE_INITIAL_REQUESTS<wbr>]</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|=======<wbr>= 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|=====================<wbr>===============");</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>==============================<wbr>=========================</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" target="_blank">http://kamailio.org/docs/mo<wbr>dules/4.3.x/modules/tm.html#tm<wbr>.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>------------------------------<wbr>------------------------------<wbr>------------</div>
<div>INVITE <a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-freetext">sip:100@quydang.htk.cvoice</a> SIP/2.0</div>
<div>Via: SIP/2.0/UDP
192.168.1.77:11000;rport;branc<wbr>h=z9hG4bKK9jyp8mXUZHgS</div>
<div>Route: <sip:<a href="http://192.168.1.77:5060" target="_blank">192.168.1.77:5060</a>></div>
<div>Max-Forwards: 49</div>
<div>From: "02 quy"
<a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-rfc2396E"><sip:102@quydang.htk.cvoice></a>;t<wbr>ag=04K2SappeyDtj</div>
<div>To: <a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-rfc2396E"><sip:100@quydang.htk.cvoice></a></div>
<div>Call-ID: 19fa9228-ef95-11e6-b473-1f6459<wbr>51fd7b</div>
<div>CSeq: 103030653 INVITE</div>
<div>Contact: <<a href="http://sip:mod_sofia@192.168.1.77:11000" target="_blank">sip:mod_sofia@192.168.1.77:11<wbr>000</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: <a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-freetext">sip:100@quydang.htk.cvoice</a></div>
<div>X-KAZOO-PUSHER-Token-Proxy: sip:<a href="http://192.168.1.77:5060" target="_blank">192.168.1.77:5060</a></div>
<div>X-KAZOO-PUSHER-Token-ID:
803F0D6610AC5979C6F0513A3A4BE6<wbr>2E0BAF1530DC7A98C2C0DC13D78458<wbr>5FBE</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"
<a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-rfc2396E"><sip:102@quydang.htk.cvoice></a>;p<wbr>arty=calling;screen=yes;privac<wbr>y=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>------------------------------<wbr>------------------------------<wbr>------------</div>
</div>
<div><br>
</div>
<div>CANCEL message:</div>
<div>
<div>------------------------------<wbr>------------------------------<wbr>------------</div>
<div>CANCEL <a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-freetext">sip:100@quydang.htk.cvoice</a> SIP/2.0</div>
<div>Via: SIP/2.0/UDP
192.168.1.77:11000;rport;branc<wbr>h=z9hG4bKK9jyp8mXUZHgS</div>
<div>Route: <sip:<a href="http://192.168.1.77:5060" target="_blank">192.168.1.77:5060</a>></div>
<div>Max-Forwards: 49</div>
<div>From: "02 quy"
<a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-rfc2396E"><sip:102@quydang.htk.cvoice></a>;t<wbr>ag=04K2SappeyDtj</div>
<div>To: <a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-rfc2396E"><sip:100@quydang.htk.cvoice></a></div>
<div>Call-ID: 19fa9228-ef95-11e6-b473-1f6459<wbr>51fd7b</div>
<div>CSeq: 103030653 CANCEL</div>
<div>Reason: SIP;cause=200;text="Call completed elsewhere"</div>
<div>Content-Length: 0</div>
<div>------------------------------<wbr>------------------------------<wbr>------------</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-m_-8684212836942980917gmail-m_-2220870249491635646gmail_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>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><span class="gmail-m_-8684212836942980917gmail-HOEnZb"><font color="#888888">
</font></span></pre><span class="gmail-m_-8684212836942980917gmail-HOEnZb"><font color="#888888">
</font></span></blockquote><span class="gmail-m_-8684212836942980917gmail-HOEnZb"><font color="#888888">
<br>
<pre class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="gmail-m_-8684212836942980917gmail-m_-2220870249491635646moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-8684212836942980917gmail_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>