All circuits are busy

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’)

The call was sent to the provider but was rejected by them. To see the details, at the Asterisk command prompt type
pjsip set logger on
and make a new test call. The log will now include a SIP trace.

Just guessing, try adding these to your trunk configuration:
From User: (same as Username)
From Domain: (same as SIP Server)

If you still have trouble, paste the log (with SIP trace) at pastebin.freepbx.org and post the link here.
If you are too new to post links, just post the last eight hex characters of the URL.

This is saying unavailable, not busy, and cause 21 is Call Rejected. The numbers, are: total calls attempted: number busy, number congested, number unavailable.

Thank you for your reply. I am really new to this and IT. I typed the pjsip set loggger on, but it says command not found. I also tried filling in the From User and Domain, it still did not work.

I’m not sure why the call is rejected. I did register the same phone number on a soft phone and ipphone (SIP), it worked normally. I could do call out and call in. But for the freepbx, I can only do inbound call.

Possibly, your provider requires that you send 66819433885 or +66819433885 instead of 0819433885. Of course, if calling from softphone or IP phone works when dialing 0819433885, that’s not your issue.

pjsip set logger on
is an Asterisk command, not a shell command. From a root shell prompt, type
asterisk -r
and you should get a prompt similar to
freepbx*CLI>
where you can type
pjsip set logger on
If the command was received properly, you should see
PJSIP Logging enabled

Also, please post the settings that worked in your softphone or IP phone. Hide any personal information such as usernames, phone numbers and passwords, by replacing them with (for example) uuuu, nnnn and pppp.

1 Like

https://pastebin.freepbx.org/view/4ba04a94
Here is the log after I tried calling out and the settings of the SessionTalk IPhone softphone that I could do outbound calls.





Your outbound call bears a callerid number of 201, which is not valid. Configure your extension/route with a valid pstn cid number.

The screenshots you posted appear to show SessionTalk configured as extension 201 on your PBX.
But what we need is when you configured it to register directly with the provider and were able to make outgoing calls. Then, we can see the settings needed for your FreePBX trunk.

Alternatively, paste a log (including pjsip logger) of a successful incoming call. With most providers, what they send you on incoming is in the formats that they expect on outgoing.

You mean the outbound CID, right? I just added the outbound CID in 201extention and the rough CID on the outbound Routes, but it still did not work. Here is the log files.
https://pastebin.freepbx.org/view/5195e08d


55633   From: "Pond" <sip:[email protected]>;tag=da69f271-6af3-4d70-9c1a-727887e4bfe0     
55634   To: <sip:[email protected]>

Possibly, the 0322 number isn’t what is needed, if the provider gave you a username in a different format. Also, they may expect their domain name (or possibly IP address) after the @ in From .
The To address is just a numeric IP address, which is somewhat unusual – did they give you a domain name to use, which resolves to that address. Also, this is a private IP address – is your provider the same as your ISP?


Here is the number that able to register with the provider. Other settings are as default (the pictures I posted earlier)

Here is the log when I do inbound call.
https://pastebin.freepbx.org/view/633b776d

They said they did not have any domain name. They just gave me the server ip address and the phone number (which is the username) and password. My ISP is also the provider of the phone numbers. I tried to ask them for help, but they have not even heard of Freepbx or Asterisk.

Though you said it didn’t work, please set in your trunk:
From User: 032240124
From Domain: 172.30.202.4

and paste another log. I suspect that it will get a little further and show a different error, which may tell us what is wrong.

58880 INVITE sip:[email protected]:5060;user=phone SIP/2.0
The 192.168 address is suspicious, because the provider must have actually sent the INVITE to your WAN address. In your router/firewall, check for a SIP ALG setting or similar, and try turning it off. If you are not sure, post make and model of router.

Also, does the router get a public IP address on its WAN interface?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.