I cannot answer as I have no registrar (i.e. authentication server) handy which would send the |qop| directive which is necessary to make the client send the |nc| value. The answer may be found in the SIPp code or by just trying. To avoid wasting time on the |ereg| handling of the 200 response before knowing whether it is worth it, it should be sufficient to send three REGISTERs, the first one without the [authetication ...] field (so you'd get the auth challenge in the 401), the second one with the [authentication ...] field (to which you should get a 200), and right after getting the 200 the third one with the [authentication ...] field again to see in a pcap whether the |nc| value is incremented or not (and not be surprised if the server responds with "401 nonce has changed") to the last one.

P.


Dne 9.3.2017 v 23:40 William Shiau napsal(a):
Hi Pavel,

Thanks a lot for the info...

I am looking for the "Re-registration" script...

If the same [authentication username="12345...@private.ims.net" password="test456"] is used
for re-registration,  would the "nc" be incremented ???
Bill


On Thursday, March 9, 2017 4:19 PM, sindelka <sinde...@ttc.cz> wrote:


Hi Bill,
I'm not sure I understand the relationship between the |nc| value in the |auth| header and the right time for re-registration...?

The information about remaining registration lifetime is normally found in the |expires| parameter of the Contact uri in the |200| response to the |REGISTER| request.

You can extract this value from there using |ereg |into a variable, multiply it by 500 and store the result into another variable which you then use in the pause statement ( |<pause variable=re_reg_timer/>| ). 500 because the value extracted from the Contact parameter is in seconds and pause expects milliseconds, but the re-registration request is usually sent at 1/2 of the remaining registration lifetime.
Pavel

Dne 9.3.2017 v 21:33 William Shiau napsal(a):
Hi,

Does anyone have the "Re-registration by SIPp" script using MD5 ???

I.e. How will SIPp generate the "Re-registration" after certain time period (nc=0000002 in the Auth header)...
Bill


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users



------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to