[SR-Users] during registration nonce expired, after backwards time shift

Vasiliy Ganchev vasiliy.ganchev at wildix.com
Tue Aug 18 22:44:00 CEST 2015


Hi list! 
(sorry for sending first mail to wrong sub forum)
Have a following issue: 
Server with Kamailio restart with wrong time (why - this is separate part of
my investigations), timeshift e.g. for 2 hours in feature. 
After ntp daemon adjust correct time (move time backwards), Kamailio do not
accept REGISTERs, pv_www_authenticate answer with code -4 (nonce expired)

I've reade the description of: 
http://kamailio.org/docs/modules/4.2.x/modules/auth.html#auth.p.nonce_expire
and 
http://kamailio.org/docs/modules/4.2.x/modules/auth.html#auth.p.nonce_auth_max_drift

This descriptions mention situation with backwards timeshift from future. 
As I understand, Kamailio do not authorise the registration, whose nonces
where generated in future (before ntp shifted the time). But in my tests,
Kamailio do not accept even REGISTER from UA, sent after time shift (with
new nonces, that as I expected has to use correct time for nonce generation,
and be authorised with no problem). 

Only Kamailio process restart help to cope with the issue. 

It looks like for nonce generating Kamailio use old time (in feature, that
was before timeshift). 

I wander, does the Kamailio behave in described case - as is expected? If I
am wrong in some of my assumptions, please point out. 

version: kamailio 4.2.5 

Thank in advance! 
Cheers!




--
View this message in context: http://sip-router.1086192.n5.nabble.com/during-registration-nonce-expired-after-backwards-time-shift-tp140536.html
Sent from the Users mailing list archive at Nabble.com.



More information about the sr-users mailing list