<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19170"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV><FONT size=2 face=Arial>Hi Bogdan,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Thank you for your help. We will try 
it.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Thanks,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Di-Shi Sun.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=bogdan@opensips.org href="mailto:bogdan@opensips.org">Bogdan-Andrei 
  Iancu</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=di-shi@transnexus.com 
  href="mailto:di-shi@transnexus.com">Di-Shi Sun</A> ; <A 
  title=devel@lists.opensips.org href="mailto:devel@lists.opensips.org">OpenSIPS 
  devel mailling list</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=support@transnexus.com 
  href="mailto:support@transnexus.com">Support of TransNexus</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, February 12, 2012 5:50 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [OpenSIPS-Devel] need help 
  to troubleshot issues</DIV>
  <DIV><BR></DIV>Hi Di-Shi,<BR><BR>My guess is (as your module probably does 
  external communication via network) that some function in your module does 
  block in a I/O op while trying to communication with an external 
  entity.<BR><BR>Based on your description I do not see how opensips it self can 
  block (like the sl_send_reply() function).<BR><BR>So, to debug something like 
  that, simply "block" all opensips processes and then attach to them with gdb 
  in order to take a backtrace (while opensips still running) - this will 
  indicate where the processes blocked.<BR><BR>Attach to the SIP worker 
  processes - they are blocking ; the fifo process works ok as it does not 
  handle SIP traffic, so it does no block .<BR><BR>Regards,<BR>Bogdan<BR><BR>On 
  02/06/2012 05:48 AM, Di-Shi Sun wrote: 
  <BLOCKQUOTE cite=mid:89FF42C18C3E49D4AD558BF17709C5F4@e520 type="cite">
    <META name=GENERATOR content="MSHTML 8.00.6001.19170">
    <STYLE></STYLE>

    <DIV><FONT size=2 face=Arial>Hi All,</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>We are testing our module that&nbsp;gets 
    routing info from outside of OpenSIPS. OpenSIPS routes calls based on these 
    info. If our module returns empty routing info for a call to 
    OpenSIPS,&nbsp;OpenSIPS uses sl_send_reply to fail the call.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>In heavy load, our module returns empty routing 
    info to OpenSIPS quickly. Soon, all OpenSIPS SIP listen threads stick 
    forever. OpenSIPS does not&nbsp;crash and&nbsp;it can still accept fifo 
    command.&nbsp;</FONT><FONT size=2 face=Arial>We did not see any error 
    message in OpenSIPS log. We also did not see any memory related message. If 
    we make our module to return the empty routing info slower, OpenSIPS SIP 
    listen threads&nbsp;do not stick.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>Would you please tell me what issue it may be 
    and which part I should dig more deep?</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>Thanks,</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>Di-Shi Sun<BR>VoIP Routing, Accounting, 
    Security<BR><A href="http://www.TransNexus.com" 
    moz-do-not-send="true">www.TransNexus.com</A></FONT></DIV><PRE wrap=""><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
Devel mailing list
<A class=moz-txt-link-abbreviated href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</A>
<A class=moz-txt-link-freetext href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</A>
</PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature cols="72">-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<A class=moz-txt-link-freetext href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</A></PRE></BLOCKQUOTE></BODY></HTML>