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

2015-09-03 Thread Daniel-Constantin Mierla
Hello, can you make a pull request on github with the last patch you tested? It will be easier to merge, avoiding extra tests here -- just be sure the commit message is formatted according to: * http://www.kamailio.org/wiki/devel/github-contributions Cheers, Daniel On 03/09/15 09:53, Vasiliy

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

2015-09-03 Thread Vasiliy Ganchev
the pull request prepared, hope it is well formatted (did not have such experience before) Daniel, thank you for spending time on this issue, and help in finding the right way ) -- View this message in context:

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

2015-09-03 Thread Vasiliy Ganchev
Hi! tested with: + /* if current time is less than start time, reset the start time + (e.g., after start, the system clock was set in the past) */ + t=time(0); + if (t < up_since) + up_since = t; + if

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

2015-09-03 Thread Daniel-Constantin Mierla
I merged the pull request. The commit message was close to the recommended format -- the first line should have been: auth: fixed issue when ... In the commit is the other one. Cheers, Daniel On 03/09/15 10:48, Vasiliy Ganchev wrote: > the pull request prepared, hope it is well formatted (did

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

2015-09-02 Thread Vasiliy Ganchev
Hi! Tested with this part: + /* if current time is less than start time, reset the start time + (e.g., after start, the system clock was set in the past) */ + t=time(0); + if (t < up_since) + up_since = t; +

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

2015-09-02 Thread Daniel-Constantin Mierla
Hello, good that you revived the thread, it got out of my sight being distracted by other stuff. I think that check has to be kept there, because it covers some situations that can appear after restart, so removing it completely won't be safe. It can be a solution to reset up_since in this

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

2015-09-01 Thread Vasiliy Ganchev
Hi Daniel! Any comments/idea about my last answer? cheers -- View this message in context: http://sip-router.1086192.n5.nabble.com/during-registration-nonce-expired-after-backwards-time-shift-tp140536p140945.html Sent from the Users mailing list archive at Nabble.com.

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

2015-08-25 Thread Vasiliy Ganchev
Daniel-Constantin Mierla-6 wrote I looked at the code and the system time is used (not the the internal value). Therefore, after detecting and invalid nonce, if you do challenge again, a nonce with the right time should be generated and used for authentication. Look at sip trace to see if

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

2015-08-23 Thread Vasiliy Ganchev
Daniel-Constantin Mierla-6 wrote I looked at the code and the system time is used (not the the internal value). Therefore, after detecting and invalid nonce, if you do challenge again, a nonce with the right time should be generated and used for authentication. Look at sip trace to see if

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

2015-08-22 Thread Daniel-Constantin Mierla
I looked at the code and the system time is used (not the the internal value). Therefore, after detecting and invalid nonce, if you do challenge again, a nonce with the right time should be generated and used for authentication. Look at sip trace to see if nonce is regenerated and run with

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

2015-08-20 Thread Daniel-Constantin Mierla
Hello, probably the module is using the time computed internally as start time plus elapsed seconds (counted internally). We can introduce an option to use the system time, which may add a bit of delay, but really insignificant. I will look into it these days. Cheers, Daniel On 18/08/15 22:44,

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

2015-08-18 Thread Vasiliy Ganchev
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