I have registered 5 pjsip trunks. Inbound and Outbound rough were set. I can receive calls from every trunk but when I try an outbound calls it says all circuits are busy.
I have read many other Topic that got similar problems, but still cannot fix this. Thank you
Here are the logs I got after an outbound call
ERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:1] Macro(“PJSIP/3-0000000e”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:1] Set(“PJSIP/3-0000000e”, “TOUCH_MONITOR=1662982599.14”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:2] Set(“PJSIP/3-0000000e”, “CHANCONTEXT=”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:3] Set(“PJSIP/3-0000000e”, “CHANCONTEXT=”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:4] Set(“PJSIP/3-0000000e”, “CHANEXTENCONTEXT=3-0000000e”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:5] Set(“PJSIP/3-0000000e”, “CHANEXTEN=3-0000000e”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:6] Set(“PJSIP/3-0000000e”, “CALLERID(number)=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:7] Set(“PJSIP/3-0000000e”, “AMPUSER=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:8] Set(“PJSIP/3-0000000e”, “HOTDESCKCHAN=3-0000000e”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:9] Set(“PJSIP/3-0000000e”, “HOTDESKEXTEN=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:10] Set(“PJSIP/3-0000000e”, “HOTDESKCALL=0”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:11] ExecIf(“PJSIP/3-0000000e”, “0?Set(HOTDESKCALL=1)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:12] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(name)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:13] GotoIf(“PJSIP/3-0000000e”, “0?report”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:14] ExecIf(“PJSIP/3-0000000e”, “1?Set(REALCALLERIDNUM=3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:15] Set(“PJSIP/3-0000000e”, “AMPUSER=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:16] GotoIf(“PJSIP/3-0000000e”, “0?limit”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:17] Set(“PJSIP/3-0000000e”, “AMPUSERCIDNAME=Chatchapong”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:18] ExecIf(“PJSIP/3-0000000e”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:19] GotoIf(“PJSIP/3-0000000e”, “0?report”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:20] Set(“PJSIP/3-0000000e”, “AMPUSERCID=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:21] Set(“PJSIP/3-0000000e”, “__DIAL_OPTIONS=HhTtr”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:22] Set(“PJSIP/3-0000000e”, “CALLERID(all)=“Chatchapong” <3>”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:23] ExecIf(“PJSIP/3-0000000e”, “0?Set(CUSDIAL=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:24] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(all)=“Chatchapong” <3>)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:25] GotoIf(“PJSIP/3-0000000e”, “0?limit”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:26] ExecIf(“PJSIP/3-0000000e”, “1?Set(GROUP(concurrency_limit)=3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:27] ExecIf(“PJSIP/3-0000000e”, “0?Set(CHANNEL(language)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:28] NoOp(“PJSIP/3-0000000e”, “Macro Depth is 1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:29] GotoIf(“PJSIP/3-0000000e”, “1?report2:macroerror”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-user-callerid,s,30)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:30] GotoIf(“PJSIP/3-0000000e”, “1?continue”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-user-callerid,s,49)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:49] Set(“PJSIP/3-0000000e”, “CALLERID(number)=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:50] Set(“PJSIP/3-0000000e”, “CALLERID(name)=Chatchapong”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:51] GotoIf(“PJSIP/3-0000000e”, “0?cnum”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:52] Set(“PJSIP/3-0000000e”, “CDR(cnam)=Chatchapong”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:53] Set(“PJSIP/3-0000000e”, “CDR(cnum)=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-user-callerid:54] Set(“PJSIP/3-0000000e”, “CHANNEL(language)=en”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:2] Gosub(“PJSIP/3-0000000e”, “sub-record-check,s,1(out,0819433885,dontcare)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:1] GotoIf(“PJSIP/3-0000000e”, “0?initialized”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:2] Set(“PJSIP/3-0000000e”, “__REC_STATUS=INITIALIZED”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:3] Set(“PJSIP/3-0000000e”, “NOW=1662982599”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:4] Set(“PJSIP/3-0000000e”, “__DAY=12”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:5] Set(“PJSIP/3-0000000e”, “__MONTH=09”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:6] Set(“PJSIP/3-0000000e”, “__YEAR=2022”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:7] Set(“PJSIP/3-0000000e”, “__TIMESTR=20220912-183639”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:8] Set(“PJSIP/3-0000000e”, “__FROMEXTEN=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:9] Set(“PJSIP/3-0000000e”, “__MON_FMT=wav”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:10] NoOp(“PJSIP/3-0000000e”, “Recordings initialized”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:11] ExecIf(“PJSIP/3-0000000e”, “0?Set(ARG3=dontcare)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:12] Set(“PJSIP/3-0000000e”, “REC_POLICY_MODE_SAVE=”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:13] ExecIf(“PJSIP/3-0000000e”, “0?Set(REC_STATUS=NO)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:14] GotoIf(“PJSIP/3-0000000e”, “3?checkaction”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (sub-record-check,s,17)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@sub-record-check:17] GotoIf(“PJSIP/3-0000000e”, “1?sub-record-check,out,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (sub-record-check,out,1)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [out@sub-record-check:1] NoOp(“PJSIP/3-0000000e”, “Outbound Recording Check from 3 to 0819433885”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [out@sub-record-check:2] Set(“PJSIP/3-0000000e”, “RECMODE=dontcare”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [out@sub-record-check:3] ExecIf(“PJSIP/3-0000000e”, “1?Goto(routewins)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (sub-record-check,out,7)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [out@sub-record-check:7] Gosub(“PJSIP/3-0000000e”, “recordcheck,1(dontcare,out,0819433885)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/3-0000000e”, “Starting recording check against dontcare”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/3-0000000e”, “dontcare”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [recordcheck@sub-record-check:3] Return(“PJSIP/3-0000000e”, “”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [out@sub-record-check:8] Return(“PJSIP/3-0000000e”, “”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:3] ExecIf(“PJSIP/3-0000000e”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:4] Set(“PJSIP/3-0000000e”, “_ROUTEID=2”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:5] Set(“PJSIP/3-0000000e”, “_ROUTENAME=Out”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:6] Set(“PJSIP/3-0000000e”, “MOHCLASS=default”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:7] Set(“PJSIP/3-0000000e”, “_CALLERIDNAMEINTERNAL=Chatchapong”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:8] Set(“PJSIP/3-0000000e”, “_CALLERIDNUMINTERNAL=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:9] Set(“PJSIP/3-0000000e”, “_EMAILNOTIFICATION=FALSE”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:10] Set(“PJSIP/3-0000000e”, “_NODEST=”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:11] Macro(“PJSIP/3-0000000e”, “dialout-trunk,1,0819433885,off”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:1] Set(“PJSIP/3-0000000e”, “DIAL_TRUNK=1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:2] ExecIf(“PJSIP/3-0000000e”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:3] GosubIf(“PJSIP/3-0000000e”, “0?sub-pincheck,s,1()”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:4] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(num)=3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:5] GotoIf(“PJSIP/3-0000000e”, “0?disabletrunk,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:6] Set(“PJSIP/3-0000000e”, “DIAL_NUMBER=0819433885”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:7] Set(“PJSIP/3-0000000e”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:8] Set(“PJSIP/3-0000000e”, “OUTBOUND_GROUP=OUT_1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:9] Set(“PJSIP/3-0000000e”, “DIAL_TRUNK_OPTIONS=T”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:10] GotoIf(“PJSIP/3-0000000e”, “1?nomax”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,s,12)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:12] GotoIf(“PJSIP/3-0000000e”, “0?skipoutcid”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:13] Macro(“PJSIP/3-0000000e”, “outbound-callerid,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:1] NoOp(“PJSIP/3-0000000e”, “3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:2] NoOp(“PJSIP/3-0000000e”, “”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:3] NoOp(“PJSIP/3-0000000e”, “off”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:4] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(name-pres)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:5] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(num-pres)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:6] Set(“PJSIP/3-0000000e”, “HOTDESCKCHAN=3-0000000e”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:7] Set(“PJSIP/3-0000000e”, “HOTDESKEXTEN=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:8] Set(“PJSIP/3-0000000e”, “HOTDESKCALL=0”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:9] ExecIf(“PJSIP/3-0000000e”, “0?Set(HOTDESKCALL=1)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:10] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(name)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:11] Set(“PJSIP/3-0000000e”, “ALLOWTHISROUTE=NO”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:12] ExecIf(“PJSIP/3-0000000e”, “0?Set(ALLOWTHISROUTE=YES)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:13] ExecIf(“PJSIP/3-0000000e”, “0?Hangup()”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:14] ExecIf(“PJSIP/3-0000000e”, “1?Set(REALCALLERIDNUM=3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:15] ExecIf(“PJSIP/3-0000000e”, “0?Set(AMPUSER=3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:16] GotoIf(“PJSIP/3-0000000e”, “1?normcid”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-outbound-callerid,s,20)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:20] Set(“PJSIP/3-0000000e”, “USEROUTCID=”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:21] Set(“PJSIP/3-0000000e”, “EMERGENCYCID=”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:22] ExecIf(“PJSIP/3-0000000e”, “0?Set(EMERGENCYCID=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:23] Set(“PJSIP/3-0000000e”, “TRUNKOUTCID=”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:24] GotoIf(“PJSIP/3-0000000e”, “1?trunkcid”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-outbound-callerid,s,30)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:30] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(all)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:31] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(all)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:32] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(all)=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:33] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(all)=3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:34] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(all)=3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:35] Set(“PJSIP/3-0000000e”, “TIOHIDE=no”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:36] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:37] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:38] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:39] ExecIf(“PJSIP/3-0000000e”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:40] Set(“PJSIP/3-0000000e”, “CDR(outbound_cnum)=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outbound-callerid:41] Set(“PJSIP/3-0000000e”, “CDR(outbound_cnam)=Chatchapong”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:14] GosubIf(“PJSIP/3-0000000e”, “0?sub-flp-1,s,1()”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:15] Set(“PJSIP/3-0000000e”, “OUTNUM=0819433885”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:16] Set(“PJSIP/3-0000000e”, “custom=PJSIP”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:17] ExecIf(“PJSIP/3-0000000e”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:18] ExecIf(“PJSIP/3-0000000e”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:19] GotoIf(“PJSIP/3-0000000e”, “1?gocall”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,s,21)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:21] Macro(“PJSIP/3-0000000e”, “dialout-trunk-predial-hook,”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“PJSIP/3-0000000e”, “”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:22] GotoIf(“PJSIP/3-0000000e”, “0?skipcrm”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:23] Set(“PJSIP/3-0000000e”, “__CRM_DIRECTION=OUTBOUND”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:24] Set(“PJSIP/3-0000000e”, “__CRM_DESTINATION=0819433885”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:25] Set(“PJSIP/3-0000000e”, “__CRM_SOURCE=3”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:26] AGI(“PJSIP/3-0000000e”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] res_agi.c: <PJSIP/3-0000000e>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:27] Set(“PJSIP/3-0000000e”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:28] NoOp(“PJSIP/3-0000000e”, “CRM Finished”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:29] GotoIf(“PJSIP/3-0000000e”, “0?bypass,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:30] ExecIf(“PJSIP/3-0000000e”, “1?Set(CONNECTEDLINE(num,i)=0819433885)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:31] ExecIf(“PJSIP/3-0000000e”, “1?Set(CONNECTEDLINE(name,i)=CID:3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:32] ExecIf(“PJSIP/3-0000000e”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:33] GotoIf(“PJSIP/3-0000000e”, “0?customtrunk”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:34] ExecIf(“PJSIP/3-0000000e”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:35] Set(“PJSIP/3-0000000e”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:36] Dial(“PJSIP/3-0000000e”, “PJSIP/0819433885@Main-032240239,300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^0819433885^0819433885^1^1662982599^Chatchapong^3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] app_stack.c: PJSIP/Main-032240239-0000000f Internal Gosub(func-apply-sipheaders,s,1(1)) start
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:1] ExecIf(“PJSIP/Main-032240239-0000000f”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:2] NoOp(“PJSIP/Main-032240239-0000000f”, “Applying SIP Headers to channel PJSIP/Main-032240239-0000000f”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:3] Set(“PJSIP/Main-032240239-0000000f”, “TECH=PJSIP”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:4] Set(“PJSIP/Main-032240239-0000000f”, “SIPHEADERKEYS=Alert-Info”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:5] While(“PJSIP/Main-032240239-0000000f”, “1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:6] Set(“PJSIP/Main-032240239-0000000f”, “sipheader=unset”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:7] ExecIf(“PJSIP/Main-032240239-0000000f”, “0?SIPRemoveHeader(Alert-Info:)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:8] ExecIf(“PJSIP/Main-032240239-0000000f”, “1?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
[2022-09-12 18:36:39] ERROR[11005] res_pjsip_header_funcs.c: No headers had been previously added to this session.
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:9] ExecIf(“PJSIP/Main-032240239-0000000f”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:10] ExecIf(“PJSIP/Main-032240239-0000000f”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:11] ExecIf(“PJSIP/Main-032240239-0000000f”, “0?SIPAddHeader(Alert-Info:unset)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:12] ExecIf(“PJSIP/Main-032240239-0000000f”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:13] EndWhile(“PJSIP/Main-032240239-0000000f”, “”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:5] While(“PJSIP/Main-032240239-0000000f”, “0”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@func-apply-sipheaders:14] Return(“PJSIP/Main-032240239-0000000f”, “”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] app_stack.c: Spawn extension (from-pstn, 0819433885, 1) exited non-zero on ‘PJSIP/Main-032240239-0000000f’
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] app_stack.c: PJSIP/Main-032240239-0000000f Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] app_dial.c: Called PJSIP/0819433885@Main-032240239
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:37] NoOp(“PJSIP/3-0000000e”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-dialout-trunk:38] GotoIf(“PJSIP/3-0000000e”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“PJSIP/3-0000000e”, “RC=21”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“PJSIP/3-0000000e”, “21,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,21,1)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [21@macro-dialout-trunk:1] Goto(“PJSIP/3-0000000e”, “continue,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp(“PJSIP/3-0000000e”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [continue@macro-dialout-trunk:2] ExecIf(“PJSIP/3-0000000e”, “1?Set(CALLERID(number)=3)”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [0819433885@from-internal:12] Macro(“PJSIP/3-0000000e”, “outisbusy,”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outisbusy:1] Progress(“PJSIP/3-0000000e”, “”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outisbusy:2] GotoIf(“PJSIP/3-0000000e”, “0?emergency,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outisbusy:3] GotoIf(“PJSIP/3-0000000e”, “0?intracompany,1”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] pbx.c: Executing [s@macro-outisbusy:4] Playback(“PJSIP/3-0000000e”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
[2022-09-12 18:36:39] VERBOSE[11345][C-00000008] file.c: <PJSIP/3-0000000e> Playing ‘all-circuits-busy-now.g722’ (language ‘en’)