<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I will investigate more -- meanwhile had some traveling. It would
speed up if you can send the backtrace of one process that blocks
when you applied the patch.<br>
<br>
You need to connect with gdb to it:<br>
<br>
gdb /path/to/kamailio _PID_<br>
<br>
replace _PID_ with the pid of blocked kamailio process.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 11/15/13 5:50 PM, Efelin Novak
wrote:<br>
</div>
<blockquote
cite="mid:CABKTgArdxAd-vrPAGsJmdXzp6KvbuULtBVtOvjxs4pvtymUi+w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi Daniel,<br>
<br>
</div>
thanks for a reply. I applied the patch and now the
Kamailio just prints <br>
<br>
WARNING: tm [t_lookup.c:1564]: t_unref(): WARNING:
script writer didn't release transaction<br>
<br>
</div>
and than freezes without any log. It does not resend the
incoming "winning" failure reply neither response to any
other messages, not even to a new calls. It just freezes.
All kamailio processes are running and eating the whole
4-core processor.<br>
<br>
</div>
Restart of Kamailio solves this problem.<br>
<br>
</div>
Any ideas how to continue with debug?<br>
<br>
</div>
<div>Thanks <br>
</div>
<div><br>
</div>
Efelin<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
2013/11/15 Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</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"> Hello,<br>
<br>
can you try attached patch?<br>
<br>
Let me know if all goes fine and I will commit it to the
repository.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
<div>On 11/15/13 10:25 AM, Efelin Novak wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">
<div>
<div>Hi,<br>
<br>
</div>
when I use t_reply("505", "Error"); in my
failure route, the response is not forwarded and
following is written into a log:<br>
<br>
kamailio[26216]: WARNING: tm [t_lookup.c:1559]:
t_unref(): WARNING: script writer didn't release
transaction<br>
<br>
plus next line is written exactly 416000 times
into a log afterwards:<br>
<br>
kamailio[32685]: CRITICAL: dialog
[dlg_hash.c:794]: log_next_state_dlg(): bogus
event 4 in state 5 for dlg 0xb4af6588
[2575:7017] with clid '121d44f0-6555f4c8' and
tags 'd12546d053aadc68o2' ''<br>
<br>
</div>
<div>My point is to change the incoming code from
users and append a Q.850 reason code.<br>
</div>
<div>Is there any other way how to do this or a
way how to fix this?<br>
</div>
<div>I'm using Kamilio 4.0.4 on Debian 7.1<br>
</div>
<div><br>
<br>
</div>
The code is as follows:<br>
failure_route[MANAGE_FAILURE]<br>
{<br>
if (t_is_canceled()) {<br>
exit;<br>
}<br>
if($T_reply_code == 408 &&
isflagset(10))<br>
{<br>
xlog("Ringing timeout");<br>
append_to_reply("Reason:
Q.850;cause=28\r\n");<br>
t_reply("505", "Error");<br>
}<br>
}<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Trainings - Berlin, Nov 25-28
- more details about Kamailio trainings at <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> -
</pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</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://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>
Kamailio Advanced Trainings - Berlin, Nov 25-28
- more details about Kamailio trainings at <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> -
</pre>
</body>
</html>