<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>do you have a pcap with all messages for such call (invite,
replies, cancel)? It is important to see if the transaction
matching elements are properly set.</p>
<p>In general, the rule for cancel is to be sent in the same way
(with the same elements) as the invite, because cancel is not a
standalone transaction, it must match the associated invite one.<br>
</p>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 18.04.18 16:59, Kelvin Chua wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMF97-d41QPNe_2sSh=YKg_3074F+mjrBgWJ3Sb0q1Kzu+0icw@mail.gmail.com">
<div dir="auto">after couple of tests, it is still hit and miss,
sometimes it matches, sometimes it does not.</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Wed, Apr 18, 2018, 6:47 PM Kelvin Chua <<a
href="mailto:kelchy@gmail.com" moz-do-not-send="true">kelchy@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">thanks alex, will test this out further but
looks good at the moment
<div>any idea why it is not matching when RURI has the port
if i only use t_check_trans() and relay?</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="m_8706939025228119807gmail_signature"
data-smartmail="gmail_signature">Kelvin Chua</div>
</div>
<br>
<div class="gmail_quote">On Wed, Apr 18, 2018 at 3:44 PM,
Alex Balashov <span dir="ltr"><<a
href="mailto:abalashov@evaristesys.com"
target="_blank" rel="noreferrer"
moz-do-not-send="true">abalashov@evaristesys.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Try
this instead:<br>
<br>
route {<br>
...<br>
<br>
t_check_trans();<br>
<br>
...<br>
<br>
if(is_method("CANCEL")) {<br>
if(!t_relay_cancel()) <br>
sl_send_reply("500", "Internal Server
Error");<br>
<br>
exit;<br>
}<br>
}<br>
<span class="m_8706939025228119807HOEnZb"><font
color="#888888"><br>
-- Alex<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br>
Web: <a href="http://www.evaristesys.com/"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">http://www.evaristesys.com/</a>,
<a href="http://www.csrpswitch.com/" rel="noreferrer
noreferrer" target="_blank" moz-do-not-send="true">http://www.csrpswitch.com/</a><br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org"
target="_blank" rel="noreferrer"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.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 - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>