[asterisk-bugs] Asterisk can not authorize with trunk registration due to nonce and opaque

KhoaNV khoanv at thoaidoanhnghiep.com
Wed Apr 11 23:59:51 CDT 2012


Hi all,

I'm using Asterisk 1.4.14 and I have to register my box to a system by SIP
Trunk using UAC account.
The problem is, Asterisk cannot capture and encrypt the account's secret
with the key code "nonce" and "opaque" that send back by the server.
When my box sends REGISTER message, server replies back 401 Unauthorized
with Authentication requirements as follow:
WWW-Authenticate: Digest realm="domain.com",
   nonce="b7c9036dbf3054aea940e9703d4f865fa4c8f84c2608",

opaque="DEF:QbkRBthOEgEQAkgVEwwHRAIBHglfXUFCQ1odGB5VEBkyb3N1dXdpICcjemIkIzx-JzwjIHsgOWJsagcC",
   algorithm=MD5,
   qop="auth"
Then my box reply the authentication info only:
Authorization:
Digest username="<correct username>",
realm="domain.com",
algorithm=MD5,
uri="sip:<domain.com>:5060",
*nonce=""*,
response="7c898abb4bec892400e56851134db5e8",
*opaque=""
*
So the server reply 403 Forbidden. Is the nonce value too long? Or is there
any other configuration needed?
My box can register no problem with other Asterisk box or work normally
with other function.
Please help, any reply is very appreciated. Thank you
*
*WBR!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-bugs/attachments/20120412/43b5a044/attachment.htm>


More information about the asterisk-bugs mailing list