[asterisk-users] SIP: match_auth_username=yes doesn't seem to work

Kenny Gryp gryp at dakin.be
Thu Jun 3 13:40:04 CDT 2010


Hi,

I'm trying to get the match_auth_username=yes sip configuration working.
It's mentioned as an experimental new feature of 1.6.2.x. (I'm using 1.6.2.8)

The sip.conf example states:
; if available, match user entry using the
; 'username' field from the authentication line
; instead of the From: field.

But still I've been unable to authenticate using username "username" but with the VOIP number 021111111.

Is this a bug or am I doing something wrong?


Here's the packet that's received:

REGISTER sip:sip.provider.be:5060 SIP/2.0
Max-Forwards: 70
Content-Length: 0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK66d4f754a
Call-ID: 2e409c83a33ba68e9ec8d01416c3c7df at 11.11.11.11
From: username <sip: 021111111 at sip.provider.be:5060>;tag=25137d7a16de03f
To: username <sip:021111111 at sip.provider.be:5060>
CSeq: 1481488189 REGISTER
Contact: fulladsl <sip: 021111111 at 11.11.11.11:5060>;expires=300
Allow: NOTIFY, REFER, OPTIONS, INVITE, ACK, CANCEL, BYE
Authorization:Digest response="48c35d36d1d994110615e715ef5ea23d",username="username",realm="asterisk",nonce="26a5abaa",algorithm=MD5,uri="sip:sip.provider.be:5060"
User-Agent: Brcm-Callctrl/v1.7.1.1 MxSF/v3.6.2.5

And asterisk reply's with:
SIP/2.0 403 Forbidden (Bad auth)



Kenny






More information about the asterisk-users mailing list