[SR-Users] Timejump causes kamailio to hang/stall

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 16 08:16:13 CET 2017


Hello,


On 15/02/2017 14:47, Erik Visser wrote:
> After I have kamailio up and running, with UAs properly registrered and sessions routed successfully, my platform faces a timejump.
> The platform starts up with date&time set to 1-1-2000 and after kamailio is up and running, the date&time jumps to the current date&time, causing two effects:
> - I loose all my registrations (since they expired in 3600 seconds)
> - kamailio does not respond to any SIP messages for a couple of minutes
>
> Is there a way to have kamailio use timeticks rather than relative time for the registrations?
> Does anybody recognize the hanging behavior? Any suggestions?
>
kamailio is using unixtime for registrations, not relative time.

But the timer callbacks are using relative intervals to know when to be
executed (e.g., timer callbacks are defined to be executed like very 1
minute, or every 90 seconds). It may be that some of the timers try to
catch up on missed intervals.

It is strange that you say no sip traffic is processed. Can you simulate
again the situation and get the backtrace with gdb from few sip workers?
If your traffic is over udp, then do 'kamctl ps', get the pid of
processes with index 1, 2 and 3, then use gdb to attach to those PIDs
and grab the output of:

bt full
info locals
list

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com




More information about the sr-users mailing list