<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hello!<br>
<br>
Your test is not completely accurate - you should measure the
timestamp in OpenSIPS after the t_relay() function. Moreover, in
the t_relay() function, OpenSIPS simply passes the message to the
kernel's network layer - it's up to the OS when he sends the
message, depending on networking queuing, CPU load, etc.<br>
<br>
Is this happening for all BYE messages?<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 08/29/2017 07:47 AM, Sureshbhai
Talasaniya wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CADGCAa843EP6489UBOv9BN7AUhRTmuc4+z7F3J1yy8RJks_mcg@mail.gmail.com">
<div dir="ltr">
<div class="gmail_default" style="font-size:12.8px">
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><u>Hello,</u></font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><b><u><br>
</u></b></font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><b><u>Problem:<br>
<br>
</u></b></font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">In some calls I noticed, OpenSIPS takes at
least 1 second to relay BYE message after calling t_relay
function. However, we didn't notice major time difference
in cfg execution before and after calling t_relay.</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><b><u>Details about Problem:</u></b></font></div>
<span class="gmail-m_-8446530047089695932gmail-im">
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">route[ON_BYE]</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">{</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> $avp(cdr_call_end_time)=$Ts; </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> $avp(cdr_call_end_time_microse<wbr>cond)=$Tsm;</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> xlog("L_WARNING","[ $ci ] Before Do
accounting : $Ts:$Tsm");</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> launch(radius_send_acct("set2"<wbr>)); </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> xlog("L_WARNING","[ $ci ] After Do
accounting : $Ts:$Tsm"); </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> route("DEFAULT_RELAY_ROUTE"); </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">} </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">route[DEFAULT_RELAY_ROUTE] { </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> if (!t_relay()) { </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> sl_reply_error(); </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> } </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"> exit; </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">}</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">In OpenSIPs Log.<br>
</font></div>
</span><span class="gmail-m_-8446530047089695932gmail-im">
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">Aug 18 13:51:59 OS
/usr/local/sbin/opensips[22304<wbr>]: [ <a
href="mailto:xxx@1.1.1.1" target="_blank"
moz-do-not-send="true">xxx@1.1.1.1</a> ] Before Do
accounting : 1503041368:000686 </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">Aug 18 13:51:59 OS
/usr/local/sbin/opensips[22304<wbr>]: [ <a
href="mailto:xxx@1.1.1.1" target="_blank"
moz-do-not-send="true">xxx@1.1.1.1</a> ] After Do
accounting : 1503041368:000887 </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">1503041368000887 - 1503041368000686 = 201
usec</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
</span>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">OpenSIPs cfg Generate Timestamp :
1503041368000887 and Called t_relay function.</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">Timestamp of BYE in tcpdump output:
1503041369001085 </font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">1503041369001085 - 1503041368000887 = 1000198</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">Which means OpenSIPS took 1 second to send BYE
to Network Layer.</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">For more information, I have attached SIP
Message text file too.</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">Looking forward to your help.</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="trebuchet ms,
sans-serif">Thanks in advance.</font></div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 28, 2017 at 8:10 PM, Liviu
Chircu <span dir="ltr"><<a
href="mailto:liviu@opensips.org" target="_blank"
moz-do-not-send="true">liviu@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
An OpenSIPS 2.3 minor release bump has been scheduled for
Thursday, Aug 31st. If you happen to have any GitHub
OpenSIPS issues or mailing list bug threads that have not
been answered yet, please let us know as soon as possible so
they make it onto the fix checklist.<br>
<br>
Best regards,<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Liviu Chircu<br>
OpenSIPS Developer<br>
<a href="http://www.opensips-solutions.com"
rel="noreferrer" target="_blank"
moz-do-not-send="true">http://www.opensips-solutions.<wbr>com</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.opensips.org"
target="_blank" moz-do-not-send="true">Devel@lists.opensips.org</a><br>
<a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel"
rel="noreferrer" target="_blank"
moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/devel</a><br>
</font></span></blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><font color="#8e7cc3">Regards,</font></div>
<div><font color="#8e7cc3">Suresh
Talasaniya.</font></div>
<div><span
style="color:rgb(142,124,195);font-size:12.8px">Software
Developer.</span><font
color="#8e7cc3"><br>
</font></div>
<div><font color="#8e7cc3">Ecosmob
Technologies Pvt. Ltd.</font></div>
<div><span
style="color:rgb(142,124,195);font-size:12.8px">Contact
: +91-9724264776</span><br>
</div>
<div><font color="#8e7cc3">Skype :
suresh.ecosmob</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
</body>
</html>