AS200+Asterisk: Peer is UNREACHABLE

Hi everyone. I try to connect AddPac AP200 to my Asterisk server, but have this error:

[Jul 8 15:49:38] NOTICE[2438]: chan_sip.c:18529 handle_request_register: Registration from ‘sip:yyy.yyy.yyy.yyy’ failed for ‘xxx.xxx.xxx.xxx’ - No matching peer found

sip show peers
Name/username Host Dyn Nat ACL Port Status


501/501 xxx.xxx.xxx.xxx N 5060 UNREACHABLE

sip show users
Username Secret Accountcode Def.Context ACL NAT

501 ***** saransk No Always

sip.conf

[501]
type=friend
host=xxx.xxx.xxx.xxx
username=501
t38pt_usertpsource=yes
nat=yes
canreinvite=no
secret=*****
context=saransk
callerid=501
allow=alaw
qualify=yes

extensions.conf

[saransk]
exten => 501,1,Dial(SIP/501/501,200)
exten => 501,2,Congestion

Where is the problem?

I’d have to check the code to see what the exact meaning of the message was, but my first guess is that the device is not sending the “501@” part of its identity.

This is part of the AP200 config:

! SIP UA configuration.
!
sip-ua
sip-username 501
sip-password ****
sip-server yyy.yyy.yyy.yyy
register gateway

I think I would need to see the result of using sip set debug. However, I was expecting to see sip:501@yyy.yyy.yyy.yyy in your message. If you’ve got a phone that registers OK, compare the contents of the REGISTER requests.