<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
the backtrace shows that the process is blocked inside perl script
listing on the network. Perhaps is waiting the reply to the command
sent to kamailio. Perhaps the perl functions you are using in your
script can have a timeout and not block forever.<br>
<br>
In which case you need to terminate the call in config? There is a
dlg_bye() function that could be useful.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 4/30/13 8:41 PM, Dragos Oancea
wrote:<br>
</div>
<blockquote
cite="mid:1367347280.35904.YahooMailNeo@web124905.mail.ne1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:arial,
helvetica, sans-serif;font-size:10pt">
<div><span>Hi </span></div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
arial, helvetica, sans-serif; background-color: transparent;
font-style: normal; "><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
arial, helvetica, sans-serif; background-color: transparent;
font-style: normal; "><span>Yes, Daniel , you are right.</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
arial, helvetica, sans-serif; background-color: transparent;
font-style: normal; "><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
arial, helvetica, sans-serif; background-color: transparent;
font-style: normal; "><span>Here is a backtrace from a SIP
worker: </span></div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
arial, helvetica, sans-serif; background-color: transparent;
font-style: normal; "><span>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="http://pastebin.com/t6XPQ6dx">http://pastebin.com/t6XPQ6dx</a><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
arial, helvetica, sans-serif; background-color: transparent;
font-style: normal; "><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
arial, helvetica, sans-serif; background-color: transparent;
font-style: normal; ">Regards,</div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
arial, helvetica, sans-serif; background-color: transparent;
font-style: normal; ">Dragos</div>
<div><br>
</div>
<div style="font-size: 10pt; font-family: arial, helvetica,
sans-serif; ">
<div style="font-size: 12pt; font-family: 'times new roman',
'new york', times, serif; ">
<div dir="ltr">
<hr size="1"> <font size="2" face="Arial"> <b><span
style="font-weight:bold;">From:</span></b>
Daniel-Constantin Mierla <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b><span style="font-weight: bold;">To:</span></b>
Dragos Oancea <a class="moz-txt-link-rfc2396E" href="mailto:droancea@yahoo.com"><droancea@yahoo.com></a>; Kamailio (SER)
- Users Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a> <br>
<b><span style="font-weight: bold;">Sent:</span></b>
Tuesday, April 30, 2013 8:28 PM<br>
<b><span style="font-weight: bold;">Subject:</span></b>
Re: [SR-Users] dlg_end_dlg<br>
</font> </div>
<div class="y_msg_container"><br>
<div id="yiv3579342826">
<div> Hello,<br>
<br>
the backtrace is from the MI process, not a SIP
worker. That process does not handle sip traffic.<br>
<br>
Before you start testing you can do 'kamctl ps' and
see which are the sip workers and get the backtrace
from those pids.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="yiv3579342826moz-cite-prefix">On 4/30/13
8:04 PM, Dragos Oancea wrote:<br>
</div>
<blockquote type="cite">
<div style="color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255); font-size: 10pt; font-family:
arial, helvetica, sans-serif; ">
<div><span>Hi Daniel,</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; "><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; ">It locks and stays locked. It is
interesting that for a while ( 1-2 minutes while
I am sending some traffic ) it can reply to
REGISTER with a 200 OK , but it does not reply
`100 Trying` to INVITE . Then nothing, no
reply. </div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; "> </div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; ">gdb output here:</div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; "><a moz-do-not-send="true"
rel="nofollow" target="_blank"
href="http://pastebin.com/Kg3hwzZT">http://pastebin.com/Kg3hwzZT</a></div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; "><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; "><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; ">Regards, </div>
<div>Dragos</div>
<div><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 13px;
background-color: transparent; font-style:
normal; font-family: arial, helvetica,
sans-serif; "><br>
</div>
<div style="font-size: 10pt; font-family: arial,
helvetica, sans-serif; ">
<div style="font-size: 12pt; font-family: 'times
new roman', 'new york', times, serif; ">
<div dir="ltr">
<hr size="1"> <font size="2" face="Arial">
<b><span style="font-weight:bold;">From:</span></b>
Daniel-Constantin Mierla <a
moz-do-not-send="true" rel="nofollow"
class="yiv3579342826moz-txt-link-rfc2396E"
ymailto="mailto:miconda@gmail.com"
target="_blank"
href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b><span style="font-weight:bold;">To:</span></b>
Dragos Oancea <a moz-do-not-send="true"
rel="nofollow"
class="yiv3579342826moz-txt-link-rfc2396E"
ymailto="mailto:droancea@yahoo.com"
target="_blank"
href="mailto:droancea@yahoo.com"><droancea@yahoo.com></a>;
Kamailio (SER) - Users Mailing List <a
moz-do-not-send="true" rel="nofollow"
class="yiv3579342826moz-txt-link-rfc2396E"
ymailto="mailto:sr-users@lists.sip-router.org" target="_blank"
href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a>
<br>
<b><span style="font-weight:bold;">Sent:</span></b>
Tuesday, April 30, 2013 6:26 PM<br>
<b><span style="font-weight:bold;">Subject:</span></b>
Re: [SR-Users] dlg_end_dlg<br>
</font> </div>
<div class="yiv3579342826y_msg_container"><br>
<div id="yiv3579342826">
<div> Hello,<br>
<br>
does it block for few seconds and then
goes on, or it locks after few seconds
and stays locked?<br>
<br>
If the second, attach with gdb to the
pid of the locked process and get the
backtrace.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div
class="yiv3579342826moz-cite-prefix">On
4/30/13 6:19 PM, Dragos Oancea wrote:<br>
</div>
<blockquote type="cite">
<div style="color: rgb(0, 0, 0);
background-color: rgb(255, 255,
255); font-size: 10pt; font-family:
arial, helvetica, sans-serif; ">
<div>
<div>Hi everyone,</div>
<div><br>
</div>
<div>I believe I've run into a
problem when using dlg_end_dlg
(with mi_datagram ) called from
an external perl script with
perl_exec() .<br>
</div>
<div>Kamailio just locks after a
while (few seconds) after
disconnecting a call.</div>
<div>Some parts of my debug log
can be found here:</div>
<div><a moz-do-not-send="true"
rel="nofollow"
class="yiv3579342826moz-txt-link-freetext"
target="_blank"
href="http://pastebin.com/ANaTEifC">http://pastebin.com/ANaTEifC</a></div>
<div><br>
</div>
<div>The problem was observed
while performing a stress test.</div>
<div>Is it a good idea to call
dlg_end_dlg() like that or I can
kill an established dialog from
the routing script in some other
way ? </div>
<div style="color: rgb(0, 0, 0);
font-size: 13px;
background-color: transparent;
font-style: normal; font-family:
arial, helvetica, sans-serif; "><br>
</div>
<div style="color: rgb(0, 0, 0);
font-size: 13px;
background-color: transparent;
font-style: normal; font-family:
arial, helvetica, sans-serif; ">Regards,</div>
<div>Dragos</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset
class="yiv3579342826mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" 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="yiv3579342826moz-signature">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" href="http://www.asipto.com/">http://www.asipto.com</a>
<a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
* <a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *</pre>
</div>
</div>
<br>
<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="yiv3579342826moz-signature">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" href="http://www.asipto.com/">http://www.asipto.com</a>
<a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
* <a moz-do-not-send="true" rel="nofollow" class="yiv3579342826moz-txt-link-freetext" target="_blank" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *</pre>
</div>
</div>
<br>
<br>
</div>
</div>
</div>
</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 Training, San Francisco, USA - June 24-27, 2013
* <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *</pre>
</body>
</html>