Hello!
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.
Is this happening for all BYE messages?
Best regards,
Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com
On 08/29/2017 07:47 AM, Sureshbhai Talasaniya wrote:
_Hello,_
*_
_*
*_Problem:
_*
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.
*_Details about Problem:_*
route[ON_BYE]
{
$avp(cdr_call_end_time)=$Ts;
$avp(cdr_call_end_time_microsecond)=$Tsm;
xlog("L_WARNING","[ $ci ] Before Do accounting : $Ts:$Tsm");
launch(radius_send_acct("set2"));
xlog("L_WARNING","[ $ci ] After Do accounting : $Ts:$Tsm");
route("DEFAULT_RELAY_ROUTE");
}
route[DEFAULT_RELAY_ROUTE] {
if (!t_relay()) {
sl_reply_error();
}
exit;
}
In OpenSIPs Log.
Aug 18 13:51:59 OS /usr/local/sbin/opensips[22304]: [ [email protected]
<mailto:[email protected]> ] Before Do accounting : 1503041368:000686
Aug 18 13:51:59 OS /usr/local/sbin/opensips[22304]: [ [email protected]
<mailto:[email protected]> ] After Do accounting : 1503041368:000887
1503041368000887 - 1503041368000686 = 201 usec
OpenSIPs cfg Generate Timestamp : 1503041368000887 and Called t_relay
function.
Timestamp of BYE in tcpdump output: 1503041369001085
1503041369001085 - 1503041368000887 = 1000198
Which means OpenSIPS took 1 second to send BYE to Network Layer.
For more information, I have attached SIP Message text file too.
Looking forward to your help.
Thanks in advance.
On Mon, Aug 28, 2017 at 8:10 PM, Liviu Chircu <[email protected]
<mailto:[email protected]>> wrote:
Hi all,
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.
Best regards,
--
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com <http://www.opensips-solutions.com>
_______________________________________________
Devel mailing list
[email protected] <mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
<http://lists.opensips.org/cgi-bin/mailman/listinfo/devel>
--
Regards,
Suresh Talasaniya.
Software Developer.
Ecosmob Technologies Pvt. Ltd.
Contact : +91-9724264776
Skype : suresh.ecosmob
_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
_______________________________________________
News mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/news