<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Can you try with master branch or backport the last two patches
from tm module? I pushed two commits that should catch and handle
better this case.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 20/06/16 18:14, Daniel-Constantin
Mierla wrote:<br>
</div>
<blockquote
cite="mid:9c499565-63fa-2e95-23e0-39e1b7c8a362@gmail.com"
type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<p>Hello,</p>
<p>it seems it tries to generate an outgoing cancel for the
suspended branch. I will check the code, likely there has to be
added condition for this cases.</p>
<p>Is the 487 reply for invite sent back? Also, the 200ok for
cancel?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 20/06/16 16:38, José Seabra wrote:<br>
</div>
<blockquote
cite="mid:CAEVZRWuaOzEz8O1uSjnhSqbCBWkxEhk2AwDKc0Q43M6vJAvZkQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hello,<br>
<br>
</div>
I'm attaching more logs to this email regarding to the
issue on SIP CANCEL to an INVITE that is suspended.<br>
<br>
</div>
If do you think that i should open an issue on git
regarding to this let me know.<br>
<br>
</div>
<div>Thank you for your help.<br>
<br>
</div>
Best Regards<br>
</div>
José<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-06-15 14:42 GMT+01:00 José
Seabra <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:joseseabra4@gmail.com" target="_blank">joseseabra4@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Daniel,<br>
<br>
But when Kamailio receives a CANCEL prints the
following error messages:<br>
<br>
2016-06-15 14:39:10.354 ERROR: tm
[t_msgbuilder.c:287]: build_local_reparse():
ERROR: build_local_reparse: INVITE is missing<br>
2016-06-15 14:39:10.354 ERROR: tm
[t_msgbuilder.c:494]: build_local_reparse():
ERROR: build_local_reparse: cannot build CANCEL
request<br>
2016-06-15 14:39:10.354 ERROR: tm
[t_cancel.c:310]: cancel_branch(): ERROR:
attempt to build a CANCEL failed<br>
2016-06-15 14:39:10.354 ERROR: tm
[t_fwd.c:1389]: e2e_cancel(): ERROR: cancel
error<br>
<br>
</div>
I'm handling the CANCEL in the script by the
following way:<br>
<br>
<br>
if (is_method("CANCEL")) {<br>
if (t_check_trans()) {<br>
route(RELAY);<br>
} else {<br>
sl_send_reply("481", "Call
leg/transaction does not exist");<br>
}<br>
exit();<br>
...<br>
...<br>
...<br>
<br>
</div>
<span class="">Thank you for your support.<br>
<br>
</span></div>
Regards<span class="HOEnZb"><font color="#888888"><br>
</font></span></div>
<span class="HOEnZb"><font color="#888888">José<br>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</font></span></div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-06-15 12:15 GMT+01:00
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:miconda@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,<br>
</p>
<span> <br>
<div>On 14/06/16 16:33, José Seabra wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi Olle and Daniel,<br>
</div>
Thank you for your replies,
After receive your msg I looked
again to my script and i found
the problem.<br>
<br>
</div>
I didn't configure the correct
failure_route block and the
failure route configured didn't
print any msg on the logs, so I <span
lang="en"><span>thought</span></span>
that it wasn't entering on failure
route.<br>
<br>
</div>
Sorry for my mistake.<br>
<br>
</div>
<div>Anyway, How should i handle the
CANCEL sip msg to an INVITE that is
suspended? (still related with this
implementation)<br>
</div>
</div>
</div>
</blockquote>
</span> Just handling it as done in the
default configuration file is ok -- the
suspended transaction will be canceled.<br>
<br>
Cheers,<br>
Daniel </div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>