Hello,
Have been setting up a FreePBX v15 with Asterix 16 with a new type trunk type I’m not used to. I have been able to setup inbound calls fine/register with the SIP trunk. However any outbound calls to the trunk made are returning “All Circuits are Busy Now, Please Try Your Call Again Later” from the PBX.
I found the following logs…
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] app_stack.c: Spawn extension (from-pstn, ***UKMOBILENUMBER***, 1) exited non-zero on 'PJSIP/SIPCENTRIC-COMPANY-0000002c'
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] app_stack.c: PJSIP/SIPCENTRIC-COMPANY-0000002c Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] app_dial.c: Called PJSIP/44***UKMOBILENUMBER***@SIPCENTRIC-COMPANY
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [s@macro-dialout-trunk:35] NoOp("SIP/600-0000001b", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [s@macro-dialout-trunk:36] GotoIf("SIP/600-0000001b", "0?continue,1:s-CHANUNAVAIL,1") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/600-0000001b", "RC=21") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/600-0000001b", "21,1") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx_builtins.c: Goto (macro-dialout-trunk,21,1)
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [21@macro-dialout-trunk:1] Goto("SIP/600-0000001b", "continue,1") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp("SIP/600-0000001b", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [continue@macro-dialout-trunk:2] ExecIf("SIP/600-0000001b", "1?Set(CALLERID(number)=600)") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [***UKMOBILENUMBER***@from-internal:12] Macro("SIP/600-0000001b", "outisbusy,") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [s@macro-outisbusy:1] Progress("SIP/600-0000001b", "") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [s@macro-outisbusy:2] GotoIf("SIP/600-0000001b", "0?emergency,1") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [s@macro-outisbusy:3] GotoIf("SIP/600-0000001b", "0?intracompany,1") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] pbx.c: Executing [s@macro-outisbusy:4] Playback("SIP/600-0000001b", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
[2020-09-24 16:26:32] VERBOSE[17611][C-00000032] file.c: <SIP/600-0000001b> Playing 'all-circuits-busy-now.ulaw' (language 'en')
[2020-09-24 16:26:34] VERBOSE[17611][C-00000032] file.c: <SIP/600-0000001b> Playing 'please-try-call-later.ulaw' (language 'en')
[2020-09-24 16:26:36] VERBOSE[17611][C-00000032] pbx.c: Executing [s@macro-outisbusy:5] Congestion("SIP/600-0000001b", "20") in new stack
[2020-09-24 16:26:36] WARNING[17611][C-00000032] channel.c: Prodding channel 'SIP/600-0000001b' failed
[2020-09-24 16:26:36] VERBOSE[17611][C-00000032] app_macro.c: Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/600-0000001b' in macro 'outisbusy'
[2020-09-24 16:26:36] VERBOSE[17611][C-00000032] pbx.c: Spawn extension (from-internal, ***UKMOBILENUMBER***, 12) exited non-zero on 'SIP/600-0000001b'
[2020-09-24 16:26:36] VERBOSE[17611][C-00000032] pbx.c: Executing [h@from-internal:1] Macro("SIP/600-0000001b", "hangupcall") in new stack
[2020-09-24 16:26:36] VERBOSE[17611][C-00000032] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("SIP/600-0000001b", "1?theend") in new stack
[2020-09-24 16:26:36] VERBOSE[17611][C-00000032] pbx_builtins.c: Goto (macro-hangupcall,s,3)