How to correctly configure external call plan on Asterisk that can call external number via 3CX?
Prefix is 9.
We can call 4251120 using prefix 94251120. But call to short external numbers is not available.
External short number is 195 so dialing will be 9195.
Log is below.
testasterisk*CLI>
– Executing [9195@call_plans:1] Set(“PJSIP/777-00000003”, “NUM=9195”) in new stack
– Executing [9195@call_plans:2] Dial(“PJSIP/777-00000003”, “PJSIP/9195,120,TtKkHh”) in new stack
[Mar 25 12:34:21] ERROR[12313]: chan_pjsip.c:2652 request: Unable to create PJSIP channel - endpoint ‘9195’ was not found
[Mar 25 12:34:21] NOTICE[12321][C-00000004]: app_dial.c:2709 dial_exec_full: Unable to create channel of type ‘PJSIP’ (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [9195@call_plans:3] Goto(“PJSIP/777-00000003”, “s-CHANUNAVAIL”) in new stack
[Mar 25 12:34:21] NOTICE[12321][C-00000004]: pbx.c:2981 pbx_extension_helper: No such label ‘s-CHANUNAVAIL’ in extension ‘9195’ in context ‘call_plans’
[Mar 25 12:34:21] WARNING[12321][C-00000004]: pbx.c:8869 pbx_parse_location: Priority ‘s-CHANUNAVAIL’ must be a number > 0, or valid label
== Spawn extension (call_plans, 9195, 3) exited non-zero on ‘PJSIP/777-00000003’
– Executing [h@call_plans:1] Hangup(“PJSIP/777-00000003”, “”) in new stack
== Spawn extension (call_plans, h, 1) exited non-zero on ‘PJSIP/777-00000003’