Hi I am new to asterisk, I am getting an error when dialing a certain ext in my dialplan. I can successfully dial ext 1001 and 1002, in context home-phones, and I can dial to external PSTN’s from ext 1001 and 1002. but if I dial any extension starting with 400X! I get a bad address. How can I troubleshoot this to determine what asterisk is recieving and processing? I can see by pjsip show history that asterisk is recieving the INVITE message
INVITE sip:40011@98.174.244.232 SIP/2.0
however, I can not determine why it believes this is a bad/incomplete address. Can someone tell me how to troubleshoot this or where I need to be looking?
Extensions.conf
[rooms]
exten => _400X!,1,GotoIf($[${DB_EXISTS(openmeetings/rooms/${EXTEN})}]?ok:notavail)
exten => _400X!,n(ok),SET(PIN=${DB(openmeetings/rooms/${EXTEN})})
exten => _400X!,n,Set(CONFBRIDGE(user,template)=sip_user)
exten => _400X!,n,Set(CONFBRIDGE(user,pin)=${PIN})
exten => _400X!,n(ok),Confbridge(${EXTEN},default_bridge,)
exten => _400X!,n,Hangup
exten => _400X!,n(notavail),Answer()
exten => _400X!,n,Playback(invalid)
exten => _400X!,n,Hangup
[rooms-originate]
exten => _400X!,1,Confbridge(${EXTEN},default_bridge,sip_user)
exten => _400X!,n,Hangup
[rooms-out]
; *****************************************************
; Extensions for outgoing calls from Openmeetings room.
; *****************************************************
[rooms-omsip]
exten => _400X!,1,GotoIf($[${DB_EXISTS(openmeetings/rooms/${EXTEN})}]?ok:notavail)
exten => _400X!,n(ok),Confbridge(${EXTEN},default_bridge,omsip_user)
exten => _400X!,n(notavail),Hangup
[home-phones]
exten => 1001,1,Dial(PJSIP/horace-desktop)
exten => 1002,1,Dial(PJSIP/horace-cellphone)
SIP Capture
eetings*CLI> pjsip show history entry 0,1,2,3,4
<— History Entry 0 Received from 98.174.244.227:55511 at 1654547214 —>
INVITE sip:40011@98.174.244.232 SIP/2.0
Via: SIP/2.0/UDP 10.10.0.8:55511;rport=55511;received=98.174.244.227;branch=z9hG4bK.q08e7DpMh
From: “horace-cellphone” sip:horace-cellphone@98.174.244.232;tag=gImQ9Wa5L
To: sip:40011@98.174.244.232
CSeq: 20 INVITE
Call-ID: 1nAgnAsdNJ
Max-Forwards: 70
Supported: replaces, outbound, gruu
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, PRACK, UPDATE
Content-Type: application/sdp
Content-Length: 524
Contact: sip:horace-cellphone@98.174.244.227:55511;transport=udp;expires=3599;+sip.instance=“urn:uuid:b8fc657a-451d-00f9-b74d-6a441ea04ea8”
User-Agent: LinphoneAndroid/4.6.9 (Galaxy Note9) LinphoneSDK/5.1.38 (tags/5.1.38^0)
Content-Type: application/sdp
Content-Length: 524
v=0
o=horace-cellphone 3844 1248 IN IP4 10.10.0.8
s=Talk
c=IN IP4 10.10.0.8
t=0 0
a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
m=audio 7078 RTP/AVP 96 97 98 0 8 18 99 100 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:97 speex/16000
a=fmtp:97 vbr=on
a=rtpmap:98 speex/8000
a=fmtp:98 vbr=on
a=fmtp:18 annexb=yes
a=rtpmap:99 telephone-event/48000
a=rtpmap:100 telephone-event/16000
a=rtpmap:101 telephone-event/8000
a=rtcp-fb:* trr-int 1000
a=rtcp-fb:* ccm tmmbr
<— History Entry 1 Sent to 98.174.244.227:55511 at 1654547214 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.10.0.8:55511;rport=55511;received=98.174.244.227;branch=z9hG4bK.q08e7DpMh
Call-ID: 1nAgnAsdNJ
From: “horace-cellphone” sip:horace-cellphone@98.174.244.232;tag=gImQ9Wa5L
To: sip:40011@98.174.244.232;tag=z9hG4bK.q08e7DpMh
CSeq: 20 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1654547214/d9c19ddb57943b0efab614ec95b1dd2e”,opaque=“2205cee34fd92498”,algorithm=md5,qop=“auth”
Server: Asterisk PBX 16.13.0
Content-Length: 0
meetings*CLI> pjsip show history entry 2
<— History Entry 2 Received from 98.174.244.227:55511 at 1654547214 —>
ACK sip:40011@98.174.244.232 SIP/2.0
Via: SIP/2.0/UDP 10.10.0.8:55511;rport=55511;received=98.174.244.227;branch=z9hG4bK.q08e7DpMh
Call-ID: 1nAgnAsdNJ
From: “horace-cellphone” sip:horace-cellphone@98.174.244.232;tag=gImQ9Wa5L
To: sip:40011@98.174.244.232;tag=z9hG4bK.q08e7DpMh
Contact: sip:horace-cellphone@98.174.244.227:55511;transport=udp;expires=3599;+sip.instance=“urn:uuid:b8fc657a-451d-00f9-b74d-6a441ea04ea8”
Max-Forwards: 70
CSeq: 20 ACK
Content-Length: 0
meetings*CLI> pjsip show history entry 3
<— History Entry 3 Received from 98.174.244.227:55511 at 1654547214 —>
INVITE sip:40011@98.174.244.232 SIP/2.0
Via: SIP/2.0/UDP 10.10.0.8:55511;rport=55511;received=98.174.244.227;branch=z9hG4bK.cuFxdCQj9
From: “horace-cellphone” sip:horace-cellphone@98.174.244.232;tag=gImQ9Wa5L
To: sip:40011@98.174.244.232
CSeq: 21 INVITE
Call-ID: 1nAgnAsdNJ
Max-Forwards: 70
Supported: replaces, outbound, gruu
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, PRACK, UPDATE
Content-Type: application/sdp
Content-Length: 524
Contact: sip:horace-cellphone@98.174.244.227:55511;transport=udp;expires=3599;+sip.instance=“urn:uuid:b8fc657a-451d-00f9-b74d-6a441ea04ea8”
User-Agent: LinphoneAndroid/4.6.9 (Galaxy Note9) LinphoneSDK/5.1.38 (tags/5.1.38^0)
Authorization: Digest username=“horace-cellphone”, realm=“asterisk”, nonce=“1654547214/d9c19ddb57943b0efab614ec95b1dd2e”, uri="sip:40011@98.174.244.232", response=“9a0b0b3c03a8e051d9a679e6ed881219”, algorithm=md5, cnonce=“sugQ0tgZewCu5R5D”, opaque=“2205cee34fd92498”, qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length: 524
v=0
o=horace-cellphone 3844 1248 IN IP4 10.10.0.8
s=Talk
c=IN IP4 10.10.0.8
t=0 0
a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
m=audio 7078 RTP/AVP 96 97 98 0 8 18 99 100 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:97 speex/16000
a=fmtp:97 vbr=on
a=rtpmap:98 speex/8000
a=fmtp:98 vbr=on
a=fmtp:18 annexb=yes
a=rtpmap:99 telephone-event/48000
a=rtpmap:100 telephone-event/16000
a=rtpmap:101 telephone-event/8000
a=rtcp-fb:* trr-int 1000
a=rtcp-fb:* ccm tmmbr
meetings*CLI> pjsip show history entry 4
<— History Entry 4 Sent to 98.174.244.227:55511 at 1654547214 —>
SIP/2.0 484 Address Incomplete
Via: SIP/2.0/UDP 10.10.0.8:55511;rport=55511;received=98.174.244.227;branch=z9hG4bK.cuFxdCQj9
Call-ID: 1nAgnAsdNJ
From: “horace-cellphone” sip:horace-cellphone@98.174.244.232;tag=gImQ9Wa5L
To: sip:40011@98.174.244.232;tag=7f1d8a01-f100-4876-8b95-091474e4bf37
CSeq: 21 INVITE
Server: Asterisk PBX 16.13.0
Content-Length: 0
meetings*CLI> pjsip show history entry 5
<— History Entry 5 Received from 98.174.244.227:55511 at 1654547214 —>
ACK sip:40011@98.174.244.232 SIP/2.0
Via: SIP/2.0/UDP 10.10.0.8:55511;rport=55511;received=98.174.244.227;branch=z9hG4bK.cuFxdCQj9
Call-ID: 1nAgnAsdNJ
From: “horace-cellphone” sip:horace-cellphone@98.174.244.232;tag=gImQ9Wa5L
To: sip:40011@98.174.244.232;tag=7f1d8a01-f100-4876-8b95-091474e4bf37
Contact: sip:horace-cellphone@98.174.244.227:55511;transport=udp;expires=3599;+sip.instance=“urn:uuid:b8fc657a-451d-00f9-b74d-6a441ea04ea8”
Max-Forwards: 70
CSeq: 21 ACK
Content-Length: 0
meetings*CLI>
dialplan debug output
[ Context ‘home-phones’ created by ‘pbx_config’ ]
9:N:-:1:
-
0:N:-:1:
-
+ 0:N:-:1:
-
+ + 0:N:-:1:EXTEN:9000(0x55b5aa5ca190)
1:N:-:1:
-
0:N:-:1:
-
+ 0:N:-:1:
-
+ + 2:N:-:1:EXTEN:1002(0x55b5aa5c9e60)
-
+ + 1:N:-:1:EXTEN:1001(0x55b5aa5c99a0)
X:Y:-:2608:
-
X:Y:-:2608:
-
+ X:Y:-:2608:
-
+ + X:Y:-:2608:
-
+ + + X:Y:-:2608:
-
+ + + + X:Y:-:2608:
-
+ + + + + X:Y:-:2608:
-
+ + + + + + X:Y:-:2608:
-
+ + + + + + + X:Y:-:2608:
-
+ + + + + + + + X:Y:-:2608:EXTEN:_XXXXXXXXXX(0x55b5aa5ca6e0)
[ Context ‘rooms-omsip’ created by ‘pbx_config’ ]
4:Y:-:1:
-
0:Y:-:1:
-
+ 0:Y:-:1:
-
+ + X:Y:-:2608:
-
+ + + !:Y:-:163840:EXTEN:_400X!(0x55b5aa5c90d0)
[ Context ‘rooms-out’ created by ‘pbx_config’ ]
No Pattern Trie present. Perhaps the context is empty...or there is trouble...
[ Context ‘rooms-originate’ created by ‘pbx_config’ ]
4:Y:-:1:
-
0:Y:-:1:
-
+ 0:Y:-:1:
-
+ + X:Y:-:2608:
-
+ + + !:Y:-:163840:EXTEN:_400X!(0x55b5aa5c8870)
[ Context ‘rooms’ created by ‘pbx_config’ ]
4:Y:-:1:
-
0:Y:-:1:
-
+ 0:Y:-:1:
-
+ + X:Y:-:2608:
-
+ + + !:Y:-:163840:EXTEN:_400X!(0x55b5aa5c78f0)