<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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>
<br>
<div class="moz-cite-prefix">On 09/03/2017 06:59, Hai Bui Duc Ha
wrote:<br>
</div>
<blockquote
cite="mid:CA+Gtc=Th2dc4_bUKzqhD3BK=0GoNS4-2utJqfk45O8M0AnY2aA@mail.gmail.com"
type="cite">
<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><br>
</div>
<div>As I read on <a moz-do-not-send="true"
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 <a class="moz-txt-link-freetext" href="sip:100@quydang.htk.cvoice">sip:100@quydang.htk.cvoice</a> SIP/2.0</div>
<div>Via: SIP/2.0/UDP
192.168.1.77:11000;rport;branch=z9hG4bKK9jyp8mXUZHgS</div>
<div>Route: <sip:<a moz-do-not-send="true"
href="http://192.168.1.77:5060">192.168.1.77:5060</a>></div>
<div>Max-Forwards: 49</div>
<div>From: "02 quy"
<a class="moz-txt-link-rfc2396E" href="sip:102@quydang.htk.cvoice"><sip:102@quydang.htk.cvoice></a>;tag=04K2SappeyDtj</div>
<div>To: <a class="moz-txt-link-rfc2396E" href="sip:100@quydang.htk.cvoice"><sip:100@quydang.htk.cvoice></a></div>
<div>Call-ID: 19fa9228-ef95-11e6-b473-1f645951fd7b</div>
<div>CSeq: 103030653 INVITE</div>
<div>Contact: <<a moz-do-not-send="true"
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: <a class="moz-txt-link-freetext" href="sip:100@quydang.htk.cvoice">sip:100@quydang.htk.cvoice</a></div>
<div>X-KAZOO-PUSHER-Token-Proxy: sip:<a moz-do-not-send="true"
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"
<a class="moz-txt-link-rfc2396E" href="sip:102@quydang.htk.cvoice"><sip:102@quydang.htk.cvoice></a>;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 <a class="moz-txt-link-freetext" href="sip:100@quydang.htk.cvoice">sip:100@quydang.htk.cvoice</a> SIP/2.0</div>
<div>Via: SIP/2.0/UDP
192.168.1.77:11000;rport;branch=z9hG4bKK9jyp8mXUZHgS</div>
<div>Route: <sip:<a moz-do-not-send="true"
href="http://192.168.1.77:5060">192.168.1.77:5060</a>></div>
<div>Max-Forwards: 49</div>
<div>From: "02 quy"
<a class="moz-txt-link-rfc2396E" href="sip:102@quydang.htk.cvoice"><sip:102@quydang.htk.cvoice></a>;tag=04K2SappeyDtj</div>
<div>To: <a class="moz-txt-link-rfc2396E" href="sip:100@quydang.htk.cvoice"><sip:100@quydang.htk.cvoice></a></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>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>