[OpenSIPS-Users] fr_timer not working properly
mayamatakeshi
mayamatakeshi at gmail.com
Sat Oct 26 04:42:44 CEST 2013
On Sat, Oct 26, 2013 at 1:35 AM, Muhammad Shahzad Shafi <
shahzad at voip-demos.com> wrote:
> **
>
> This is pretty strange, since it never happened to me on an AMD machine,
> though i have different model, AMD Athlon II X2 250e.
>
> Can you try using fr_timer_avp? e.g.
>
> modparam("tm", "fr_timer_avp", "$avp(10)")
> modparam("tm", "fr_inv_timer_avp", "$avp(20)")
>
> See more info,
>
> http://www.opensips.org/html/docs/modules/1.10.x/tm.html#id293753
>
>
> Set these vars and print xlog when INVITE comes in.
>
> branch_route {
> ...
> $avp(10) = 5;
> $avp(20) = 60;
> xlog("L_NOTICE", "[$pr:$fU@$si:$sp]: Setting TRY timer to '$avp(10)'
> and RING timer to '$avp(20)' for call from '$fu' to '$ru' \n");
> ...
> }
>
>
> Then check in failure route,
>
> failure_route {
> ...
> if (t_check_status("408")) {
> if ( t_local_replied("all") ) {
> # local timeout with no reply received -> fr_timer
> xlog("L_NOTICE", "[$pr:$fU@$si:$sp]: Timeout on TRY timer for
> '$rm' from '$fu' to '$ru' after '$avp(10)' seconds \n");
> } else if ( t_local_replied("last") ) {
> # timeout with replies received -> fr_inv_timer
> xlog("L_NOTICE", "[$pr:$fU@$si:$sp]: Timeout on RING timer
> for '$rm' from '$fu' to '$ru' after '$avp(20)' seconds \n");
> } else {
> # received timeout
> xlog("L_NOTICE", "[$pr:$fU@$si:$sp]: Timeout on T2 timer for
> '$rm' from '$fu' to '$ru' after '$avp(20)' seconds \n");
> };
> };
> ...
> }
>
>
> This will make things clearer if there is any problem.
>
>
Hello Muhammad,
thanks for the info.
I fail to make it clear that this is a problem with opensips running on
virtual machines.
The problem only happens on virtualized AMD Opteron(tm) Processor 6344 (on
KVM).
Actually, we first detected this problem using fr_timer_avp, then we
proceeded to check with fr_timer parameter.
I forgot to mention that I have opened a ticket with more details about
this:
https://github.com/OpenSIPS/opensips/issues/107
Our conclusion was that the VM host is failing to send all ticks to the VM
guest maybe assuming it is running in tickless mode (although I am using
KVM, a read about this on a VMWare doc). So time passes slowly to the VM
guest.
We could not solve yet this issue so for now, the solution is to run on a
different VM host using a different CPU model.
Regards,
Takeshi
>
>
>
> On 2013-10-25 09:35, mayamatakeshi wrote:
>
>
>
>
> On Tue, Oct 15, 2013 at 10:09 AM, mayamatakeshi <mayamatakeshi at gmail.com>wrote:
>
>> Hello,
>> I have some servers running opensips 1.10 commit
>> bfd86ab25554082053167a82655e669ca1c0ea7c
>>
>> I am seeing an issue in them that i cannot reproduce in other servers:
>> the fr_timer is not respected.
>> I set tm fr_timer=5 and use sipp to make a call and make opensips to send
>> the call to an address that is not being listened by any app like
>> 127.0.0.1:5010.
>> In these servers, sometimes timeout happens after 6, 9, 12 seconds but
>> never (so far after) 5 seconds.
>> But in other machines, fr_timer is consistently respected.
>> So I am trying to figure out what would be causing this.
>> Does anyone have any idea of configuration of the server that could cause
>> this?
>> The only significant difference I see is that on the problematic servers
>> corosync was installed for HA (to control opensips switchover) but I don't
>> see how this could have such impact.
>>
>
> Just in case someone else gets into this.
> We verified the problem only happens if the VM runs on a VM host using
> this processor:
>
> model name : AMD Opteron(tm) Processor 6344
>
> On the server where we have this one:
>
> model name : Intel(R) Xeon(R) CPU X5550 @ 2.67GHz
>
> there is no problem.
>
> Regards,
> Takeshi
>
> --
> Mit freundlichen Grüßen
> Muhammad Shahzad
> -----------------------------------
> CISCO Rich Media Communication Specialist (CRMCS)
> CISCO Certified Network Associate (CCNA)
> Cell: +49 176 99 83 10 85
> MSN: shari_786pk at hotmail.com
> Email: shaheryarkh at googlemail.com
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20131026/81ebe891/attachment.htm>
More information about the Users
mailing list