[SR-Users] Kamailio - Nonce validity between Register and Invite

Daniel-Constantin Mierla miconda at gmail.com
Fri Aug 31 10:34:40 CEST 2012


Hello,

On 8/30/12 10:43 AM, patrice.bodeven at orange.com wrote:
> Hello,
>
> Sorry, but i am blocked on the nonce reuse between the Register and the INVITE even with the info provided in debug mode.
>   
> My understanding is Nonce should be valid between SIP methods until the nonce is valid in the time.
> But I don't know how the Nonce is stored and how Kamailio is looking for the nonce into the memory !
>
> I did a test on Register => nonce reuse is ok.
> I did a test on INVITE => nonce reuse of Register or on previous INVITE doesn't work !
>
> But based on the site indicated below and the SIPP (generate the INVITE with the Nonce of Register), the result is
> auth_db [authorize.c:271]: realm value [openims-kamailio-1.mycluster]
> auth [api.c:95]: auth: digest-algo: MD5 parsed value: 1
> auth [api.c:147]: auth:pre_auth: Invalid nonce value received
>
> But there is no explanation why the nonce is invalid.
can you apply the following patch:

http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blobdiff;f=modules/auth/api.c;h=c79de5c9dd6cd3e176c05d836c7b0a4275f8a3d2;hp=2ee39a7a6cbcce741365dac97ae8a3db8c196b0c;hb=494b383edde7a2d193c220f3117506e4cc95932f;hpb=e4ecf49add0e62330e1db071106806e35e9b078a

It practically adds the return code in the log message, that should give 
better leads to why the nonce is considered invalid, allowing to track 
back quicker in the source code.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat




More information about the sr-users mailing list