Dialog default timeout issue

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Dialog default timeout issue

Chen-Che Huang
Dear all,

I have been using the automatic dialog termination feature by setting the dialog default timer (modparam("dialog", "default_timeout", 1800) and create_dialog(“B”). This function had been working normally for weeks but it turned abnormal in the last few days. Specifically, the OpenSIPS server would terminate the calls later than the time at which the timer expired (e.g., the timeout value is 30 minutes but the server terminated the calls after the calls have been lasting 35 minutes).

When running opensipsctl fifo dlg_list, I found the timeout was correct but kept varying (increased slowly and sometime stayed fixed). Besides, the following messages are shown in the log many times
CRITICAL:core:timer_ticker: timer handler <ds-pinger> lasted (2720000 us) for more than timer tick (1000000 us) -> potential timer shifting
CRITICAL:core:timer_ticker: timer handler <tm-timer> lasted (3810000 us) for more than timer tick (1000000 us) -> potential timer shifting

I had no idea about any relevance between ``late call termination’’ and ``timer shifting’’. I use OpenSIP version 1.9.0. Does anyone encounter similar issue? Any comment is greatly appreciated.

Best wishes,
Chen-Che
Reply | Threaded
Open this post in threaded view
|

Re: Dialog default timeout issue

Bogdan-Andrei Iancu-2
Hi Chen-Che,

Those logs are really relevant to your dialog expire problem. What those
logs say is that some timer routines (like ds-pinger or tm-timer) took
very long to execute ( like 2 or 4 seconds) and this leads to delays in
the execution of the following timer routines (the timer process gets
delayed). This is a limitation of 1.x OpenSIPS versions, where timers
are executed in sequential order in a single process (and if one gets
slow, it will affect the other too).

The ides is to address the timer routines reported as being slow. The
tm-timer can be moved into a separate process :
http://www.opensips.org/html/docs/modules/1.9.x/tm.html#id294499
For the dispatcher pinger - how many destinations do you have in the
list ? also, do you have some TCP destinations in there ?

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.02.2015 10:05, microx wrote:

> Dear all,
>
> I have been using the automatic dialog termination feature by setting the
> dialog default timer (modparam("dialog", "default_timeout", 1800) and
> create_dialog(“B”). This function had been working normally for weeks but it
> turned abnormal in the last few days. Specifically, the OpenSIPS server
> would terminate the calls later than the time at which the timer expired
> (e.g., the timeout value is 30 minutes but the server terminated the calls
> after the calls have been lasting 35 minutes).
>
> When running opensipsctl fifo dlg_list, I found the timeout was correct but
> kept varying (increased slowly and sometime stayed fixed). Besides, the
> following messages are shown in the log many times
> CRITICAL:core:timer_ticker: timer handler <ds-pinger> lasted (2720000 us)
> for more than timer tick (1000000 us) -> potential timer shifting
> CRITICAL:core:timer_ticker: timer handler <tm-timer> lasted (3810000 us) for
> more than timer tick (1000000 us) -> potential timer shifting
>
> I had no idea about any relevance between ``late call termination’’ and
> ``timer shifting’’. I use OpenSIP version 1.9.0. Does anyone encounter
> similar issue? Any comment is greatly appreciated.
>
> Best wishes,
> Chen-Che
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-default-timeout-issue-tp7595155.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dialog default timeout issue

Chen-Che Huang
Hi Bogdan-Andrei,

Thanks for your reply. The delays resulted from some unknown issue in our testing infrastructure rather than a number of destinations. I had set modparam("tm", "own_timer_proc", 1) to make tm module run its own timer?! but the problem remains. Anyway, as long as the long delays issue is resolved, this issue should not exist. Thanks again.

Kind wishes,
Chen-Che
Reply | Threaded
Open this post in threaded view
|

Re: Dialog default timeout issue

Bogdan-Andrei Iancu-2
Hi Chen-Che,

You mean after having TM with its own timer process, you still get the
logs on tm-timer, but the dialog is no longer affected ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.02.2015 16:20, microx wrote:

> Hi Bogdan-Andrei,
>
> Thanks for your reply. The delays resulted from some unknown issue in our
> testing infrastructure rather than a number of destinations. I had set
> modparam("tm", "own_timer_proc", 1) to make tm module run its own timer?!
> but the problem remains. Anyway, as long as the long delays issue is
> resolved, this issue should not exist. Thanks again.
>
> Kind wishes,
> Chen-Che
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-default-timeout-issue-tp7595155p7595164.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dialog default timeout issue

Chen-Che Huang
Hi Bogdan-Andrei,

I meant that I set modparam("tm", "own_timer_proc", 1) in the first place but the dialogs were affected. From your previous reply, I though that setting modparam("tm", "own_timer_proc", 1) enables TM have its own timer and dialogs can be prevented from being affected. So, setting modparam("tm", "own_timer_proc", 1) should be effective in preventing dialogs from being affected by long delays? Or I misunderstand it?

PS. In the my config, I just write
if (is_method("INVITE"))
    create_dialog("B");       and do not call t_newtran()

Thanks.

Kind wishes,
Chen-Che

 
Reply | Threaded
Open this post in threaded view
|

Re: Dialog default timeout issue

Bogdan-Andrei Iancu-2
Hi Chen-Che,

Your understanding is perfect !

My question is - after having its own timer proc in TM and sorting out
the dispatcher pinging, do you still get messages about delayed timer
routines ? Also, does dialog module still has delayed timeouts ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 04.02.2015 03:11, microx wrote:

> Hi Bogdan-Andrei,
>
> I meant that I set modparam("tm", "own_timer_proc", 1) in the first place
> but the dialogs were affected. From your previous reply, I though that
> setting modparam("tm", "own_timer_proc", 1) enables TM have its own timer
> and dialogs can be prevented from being affected. So, setting modparam("tm",
> "own_timer_proc", 1) should be effective in preventing dialogs from being
> affected by long delays? Or I misunderstand it?
>
> PS. In the my config, I just write
> if (is_method("INVITE"))
>      create_dialog("B");       and do not call t_newtran()
>
> Thanks.
>
> Kind wishes,
> Chen-Che
>
>  
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-default-timeout-issue-tp7595155p7595187.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dialog default timeout issue

Chen-Che Huang
Hi Bogdan-Andrei,

Since my understanding is ok, the long delay issue in our testing infrastructure should not affect the dialog timeout value when modparam("tm", "own_timer_proc", 1) is enabled. Why it still occurs?

According to my colleague, the long delay is an issue between the Linux kernel and the kvm adopted in our testing infrastructure. We are keeping our eye on this issue.

Thanks.

Best wishes,
Chen-Che
Reply | Threaded
Open this post in threaded view
|

Re: Dialog default timeout issue

Bogdan-Andrei Iancu-2
Hi Chen-Che,

The own_timer_proc affects only TM, so there are many other timer
routines still running together with the one belonging to dialog module.
So for the moment you took the TM aside (but only it) - but other
modules (with timer routines) may still affect dialog module.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.02.2015 04:00, microx wrote:

> Hi Bogdan-Andrei,
>
> Since my understanding is ok, the long delay issue in our testing
> infrastructure should not affect the dialog timeout value when
> modparam("tm", "own_timer_proc", 1) is enabled. Why it still occurs?
>
> According to my colleague, the long delay is an issue between the Linux
> kernel and the kvm adopted in our testing infrastructure. We are keeping our
> eye on this issue.
>
> Thanks.
>
> Best wishes,
> Chen-Che
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-default-timeout-issue-tp7595155p7595213.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dialog default timeout issue

Chen-Che Huang
Hi Bogdan-Andrei,

Thanks for your clear explanation!

Best wishes,
Chen-Che