407 Proxy Authentication Required

Hello

SIP outgoing connections works fine. Incoming do not.
SIP debug shows:
— (13 headers 14 lines) —
Ignoring this INVITE request
Retransmitting #1 (NAT) to 66.150.120.11:5060:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 66.150.120.11:5060;branch=z9hG4bK259ae02c;received=66.150.120.11;rport=5060
From: “My Namei” sip:410_my_number@66.150.120.11;tag=as6160d00e
To: sip:410_my_number@83_my_IP;tag=as3ea62395
Call-ID: 3da7c0040a37339b0144041a05de9733@66.150.120.11
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Proxy-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="63a02c32"
Content-Length: 0

sip show peers:
410_my_number/410_my_number 66.150.120.11 N 5060 OK (144 ms)

my sip.conf part:
[410_my_number ]
username=410_my_number
type=friend
secret=***
insecure=very
host=sip.binfone.com
fromuser=410_my_number
fromdomain=sip.binfone.com
disallow=all
context=DID_trunk_1
allow = all
auth=md5

Why ? What’s wrong ?

Thanx
Michal

Hi,

You should add auth user to the context, and in your sip client add the authentication user.

If you want to avoid md5 authentication drop the auth=md5 from the context.
and send the sip client registration without the authentication user.

Best Regards,

Daniel