- while using AMI I am getting this error:
[Feb 3 10:27:41] NOTICE[71973]: res_pjsip_session.c:4046 new_invite: 1000: Call (UDP:x.x.x.x:5060) to extension ‘s’ rejected because extension not found in context ‘outbound’. <— Transmitting SIP response (404 bytes) to UDP:x.x.x.x:5060 —> SIP/2.0 404 Not Found Via: SIP/2.0/UDP x.x.x.x:5060;rport=5060;received=x.x.x.x;branch=z9hG4bKPjd56544eb-19d5-4ff5-9ad1-6698ec562472 Call-ID: bb6e3cc2-e7f3-4cd3-94c1-abedf5240672 From: “Test Call” sip:asterisk@x.x.x.x;tag=2bc55c1f-1911-4177-90b1-ef8de0e9d0e2 To: sip:x.x.x.x;tag=464d7ffe-ba55-4673-92f9-840cb54f18c3 CSeq: 3429 INVITE Server: Asterisk PBX 20.11.1 Content-Length: 0
- These are my files for reference:
pjsip.conf
[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0
[reg1000]
type=registration
outbound_auth=auth1000
server_uri=sip:x.x.x.x
client_uri=sip:1000@x.x.x.x
retry_interval=60
[auth1000]
type=auth
auth_type=userpass
password=password
username=1000
[1000]
type=aor
contact=sip:x.x.x.x:5060
max_contacts=5
[1000]
type=endpoint
context=outbound
disallow=all
allow=ulaw
outbound_auth=auth1000
aors=1000
[id1000]
type=identify
endpoint=1000
match=x.x.x.x
[reg1001]
type=registration
outbound_auth=auth1001
server_uri=sip:x.x.x.x
client_uri=sip:1001@x.x.x.x
retry_interval=60
[auth1001]
type=auth
auth_type=userpass
password=password
username=1001
[1001]
type=aor
contact=sip:x.x.x.x:5060
max_contacts=5
[1001]
type=endpoint
context=outbound
disallow=all
allow=ulaw
outbound_auth=auth1001
aors=1001
[id1001]
type=identify
endpoint=1001
match=x.x.x.x
extensions.conf
[general]
static=yes
writeprotect=no
clearglobalvars=no
[outbound]
exten => 1000,1,NoOp(Call received for extension 1000)
same => n,Answer()
same => n,Dial(PJSIP/1000,30)
same => n,Hangup()
exten => 1001,1,NoOp(Call received for extension 1001)
same => n,Answer()
same => n,Dial(PJSIP/1001,30)
same => n,Hangup()
exten => _X.,1,NoOp(Invalid Extension ${EXTEN})
same => n,Playback(sorry-cant-dial)
same => n,Hangup()
- pjsip show contacts is showing both 1000 and 1001.