Setting up port forwarding so that 5060 UDP and 10000-20000 UDP are forwarded to the internal IP address for Asterisk, on the LAN, got results for dialing the DID assigned by Telnyx.
Doesn’t the [inbound]
context using _X.
match every number? What’s the problem with [inbound]
?
mordor*CLI>
== Using SIP RTP CoS mark 5
[Jul 4 04:48:04] NOTICE[13255][C-0000000e]: chan_sip.c:25545 handle_request_invite: Call from 'TELNYX' (192.76.120.10:5060) to extension '+123456789101' rejected because extension not found in context 'inbound'.
== Using SIP RTP CoS mark 5
[Jul 4 04:48:08] NOTICE[13255][C-0000000f]: chan_sip.c:25545 handle_request_invite: Call from 'TELNYX' (192.76.120.10:5060) to extension '+123456789101' rejected because extension not found in context 'inbound'.
mordor*CLI>
mordor*CLI> dialplan show
__func_periodic_hook_context__ ael-builtin-h-bubble ael-default ael-demo
ael-dundi-e164 ael-dundi-e164-canonical ael-dundi-e164-customers ael-dundi-e164-local
ael-dundi-e164-lookup ael-dundi-e164-switch ael-dundi-e164-via-pstn ael-iaxprovider
ael-iaxtel700 ael-international ael-local ael-longdistance
ael-std-exten-ael ael-trunkint ael-trunkld ael-trunklocal
ael-trunktollfree chanvar default demo
globals local myphones outbound
parkedcalls public inbound
mordor*CLI> dialplan show globals
TOLL=SIP/TELNYX
OUTBOUND-TRUNKMSD=1
OUTBOUND-TRUNK="Zap/g2"
IAXINFO-AEL=guest
CONSOLE-AEL="Console/dsp"
-- 5 variable(s)
mordor*CLI>
mordor*CLI> dialplan show myphones
[ Context 'myphones' created by 'pbx_config' ]
'1000' => 1. Dial(SIP/1000) [pbx_config]
2. Hangup() [pbx_config]
'1001' => 1. Dial(SIP/1001) [pbx_config]
2. Hangup() [pbx_config]
'201' => 1. Answer() [pbx_config]
2. Playback(tt-monty-knights) [pbx_config]
3. Hangup() [pbx_config]
'202' => 1. Answer() [pbx_config]
2. Playback(welcome) [pbx_config]
3. Playback(demo-echotest) [pbx_config]
4. Echo() [pbx_config]
5. Playback(demo-echodone) [pbx_config]
6. Playback(vm-goodbye) [pbx_config]
7. Hangup() [pbx_config]
'4000' => 1. Playback(tt-monkeys) [pbx_config]
'5000' => 1. Playback(tt-monkeysintro) [pbx_config]
'555' => 1. Playback(hello-world) [pbx_config]
2. Playback(echo-test) [pbx_config]
3. Echo() [pbx_config]
4. Playback(demo-echodone) [pbx_config]
'6001' => 1. Dial(SIP/demo_alice,20) [pbx_config]
'6002' => 1. Dial(SIP/demo_bob,20) [pbx_config]
'6003' => 1. Dial(SIP/thufir,20) [pbx_config]
'6004' => 1. Dial(SIP/hawat,20) [pbx_config]
'6005' => 1. Dial(SIP/piter,20) [pbx_config]
Include => 'inbound' [pbx_config]
Include => 'outbound' [pbx_config]
-= 12 extensions (25 priorities) in 1 context. =-
mordor*CLI>
mordor*CLI> dialplan show inbound
[ Context 'inbound' created by 'pbx_config' ]
'_x.' => 1. NoOp() [pbx_config]
2. Dial(SIP/thufir,60) [pbx_config]
3. Hangup() [pbx_config]
-= 1 extension (3 priorities) in 1 context. =-
mordor*CLI>
mordor*CLI> dialplan show outbound
[ Context 'outbound' created by 'pbx_config' ]
'_1NXXNXXXXXX' => 1. NoOp() [pbx_config]
2. Set(CALLERID(name)=opm) [pbx_config]
3. Log(NOTICE, Dialing out from ${CALLERID(all)} to ${EXTEN:1} through ${TOLL}) [pbx_config]
4. Dial(${TOLL}/${EXTEN:1},60) [pbx_config]
5. Playtones(congestion) [pbx_config]
6. Hangup() [pbx_config]
-= 1 extension (6 priorities) in 1 context. =-
mordor*CLI>