Hi all,<br>There is a parameter called "nonce" included in every register request that a UA sends to asterisk. I have read sip debug a lot and only found out that the "nonce" parameter value which is used in register request was generated by asterisk server in a previous sip response.
<br>As you can see in the sip debug (labled in red).<br><br><span style="color: rgb(0, 153, 0);"><--- Transmitting (NAT) to <a href="http://208.120.167.146:80">208.120.167.146:80</a> ---></span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">SIP/2.0 401 Unauthorized</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Via: SIP/2.0/UDP <a href="http://208.120.167.146:80">208.120.167.146:80</a>;branch=z9hG4bK03891485;received=
<a href="http://208.120.167.146">208.120.167.146</a></span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">From: <<a href="mailto:sip:bernart48@magnum.axvoice.com">sip:bernart48@magnum.axvoice.com
</a>>;tag=as65460c44</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">To: <<a href="mailto:sip:bernart48@magnum.axvoice.com">sip:bernart48@magnum.axvoice.com</a>>;tag=as3a5cc850</span>
<br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Call-ID: <a href="mailto:48f3a8b426c375a161dc1f4479bba956@127.0.0.1">48f3a8b426c375a161dc1f4479bba956@127.0.0.1</a></span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">CSeq: 19680 REGISTER</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">User-Agent: Asterisk PBX</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Supported: replaces</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", <span style="color: rgb(204, 0, 0);">nonce="584760da"</span></span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Content-Length: 0
</span><br style="color: rgb(0, 153, 0);"><br style="color: rgb(0, 153, 0);"><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"><------------></span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">
Scheduling destruction of SIP dialog '<a href="mailto:48f3a8b426c375a161dc1f4479bba956@127.0.0.1">48f3a8b426c375a161dc1f4479bba956@127.0.0.1</a>' in 32000 ms (Method: REGISTER)</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">magnum*CLI></span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"><--- SIP read from <a href="http://208.120.167.146:80">208.120.167.146:80</a> ---></span>
<br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">REGISTER sip:<a href="http://magnum.axvoice.com">magnum.axvoice.com</a> SIP/2.0</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">
Via: SIP/2.0/UDP <a href="http://208.120.167.146:80">208.120.167.146:80</a>;branch=z9hG4bK0c6c6f53</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">From: <<a href="mailto:sip:bernart48@magnum.axvoice.com">
sip:bernart48@magnum.axvoice.com</a>>;tag=as65460c44</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">To: <<a href="mailto:sip:bernart48@magnum.axvoice.com">sip:bernart48@magnum.axvoice.com
</a>>;tag=as3a5cc850</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Call-ID: <a href="mailto:48f3a8b426c375a161dc1f4479bba956@127.0.0.1">48f3a8b426c375a161dc1f4479bba956@127.0.0.1</a></span>
<br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">CSeq: 19681 REGISTER</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">User-Agent: Asterisk PBX</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">Authorization: Digest username="bernart48", realm="asterisk", algorithm=MD5, uri="sip:bernart48@64.182.161.2:9060", <span style="color: rgb(204, 0, 0);">nonce="584760da"
</span>, response="948d3923bf2df47eca17c572713af2c7", opaque=""</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Expires: 120</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">
Contact: <sip:16474764942@208.120.167.146:80></span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Event: registration</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">
Content-Length: 0</span><br><br clear="all">What i dont know, and would very much like to know, is what is the purpose of this parameter in sip packets? <br>-- <br>Best Regards<br>Rizwan Hisham<br>Software Engineer<br>Axvoice Inc.
<br><a href="http://www.axvoice.com">www.axvoice.com</a>