[asterisk-users] registration not authorized - stale nonce

asterisk jobs asteriskcoding at gmail.com
Mon Jan 2 14:39:44 CST 2012


We get the same error with this version.

On Sun, Jan 1, 2012 at 6:13 PM, Matt Hamilton <mistral9999 at hotmail.com>wrote:

>  I have a very basic setup where a UAC registers with Asterisk 1.8.7.2 -
> both on the same subnet, no nat.
>
> The following is the flow of messages:
> 1. UAC sends the registration request
> 2. Asterisk responds with 401 Unauthorized with a new nonce
> 3. UAC sends a new digest with the nonce received from Asterisk
> 4. Asterisk authorizes UAC and sends OK
>
> This works as expected when there is no load on the Asterisk server.
>
> For testing asterisk under load, I use Sipp (runnig at a server on the
> same subnet)  with a very basic scenario (call is placed, moh played, sipp
> hangs up after 20 secs). Max calls on the system at one time is 50.
>
> My problem happens when the above UAC tries to register while the Sipp
> test is running.
>
> Steps 1 and 2 above happen as expected, Asterisk sends a new nonce to the
> UAC, but at step 3, UAC sends the old digest (old nonce) back to Asterisk.
> Asterisk doesn't authorize the UAC with "Correct auth, but based on stale
> nonce" warning.
>
> UAC registration expiry is 60 seconds. As I mentioned, if the test is not
> running, everything seems to be OK. If I adjust the max calls to 10 in the
> test and reduce the load, the registrations go thru.
>
> Any ideas?
>
> Thanks,
> Matt
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120102/1caa9cc8/attachment.htm>


More information about the asterisk-users mailing list