Unable to register sip

#1

Hi Team,

I am trying to resister sip from an network and getting error like
2019/04/04 07:59:34.150457 X.X.X.X:5060 -> 116.74.137.20:62854
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 116.74.137.20:62854;branch=z9hG4bK-524287-1—a7391db6711d05f1;received=116.74.137.20;rport=62854
From: sip:103@X.X.X.X;transport=UDP;tag=9c77da21
To: sip:103@X.X.X.X;transport=UDP;tag=as4991e564
Call-ID: TnOlvAlhh4f2fxPUkK3hSA…
CSeq: 1 SUBSCRIBE
Server: Asterisk PBX 16.1.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“5042b375”
Content-Length: 0

and when i try from other network, it is registered.

Please guide me where is the error or what needs to be change,
My sip details:

[103]
type=friend
callerid=103
username=103
secret=XXXXXXXXXXX
host=dynamic
nat=yes
disallow=all
allow=alaw
allow=ulaw
qualify=yes
context=callcheck
call-limit=1
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0

Best Regards,
Sonu Kumar

0 Likes

#2

There is no team.

There is no error in your logs. 401 is a normal part of the protocol exchange. The peer should have responded with authentication data. If it did not, you need to check whether it received the response, and, if so, why it did provide authentication data.

0 Likes