Extensions Inbound works fine. Outbound not working

Hello all.

I have asterisk freepbx 13.x.x.
All my extensions are working fine on internal calls, i can reach my pbx from ouside, but i cannot place calls. all i hear “all circuites are busy now…”

here is a verbose of the asterisk console if anyone help me.

Connected to Asterisk 13.29.2 currently running on localhost (pid = 1835)
– Added contact ‘sip:[email protected]:53094;rinstance=49ba98a1ae381e8b’ to AOR ‘103’ with expiration of 60 seconds
== Contact 103/sip:[email protected]:53094;rinstance=49ba98a1ae381e8b has been deleted
== Endpoint 103 is now Unreachable
== Endpoint 103 is now Reachable
– Contact 103/sip:[email protected]:53094;rinstance=49ba98a1ae381e8b is now Reachable. RTT: 16.120 msec
== Setting global variable ‘SIPDOMAIN’ to ‘192.168.1.2’
– Executing [07519547107@from-internal:1] Macro(“PJSIP/102-000000c4”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/102-000000c4”, “TOUCH_MONITOR=1577191007.220”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/102-000000c4”, “AMPUSER=102”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“PJSIP/102-000000c4”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“PJSIP/102-000000c4”, “1?Set(REALCALLERIDNUM=102)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/102-000000c4”, “AMPUSER=102”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“PJSIP/102-000000c4”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“PJSIP/102-000000c4”, “AMPUSERCIDNAME=John Orfanidis”) in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“PJSIP/102-000000c4”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“PJSIP/102-000000c4”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/102-000000c4”, “AMPUSERCID=102”) in new stack
– Executing [s@macro-user-callerid:11] Set(“PJSIP/102-000000c4”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:12] Set(“PJSIP/102-000000c4”, “CALLERID(all)=“John Orfanidis” <102>”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“PJSIP/102-000000c4”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“PJSIP/102-000000c4”, “1?Set(GROUP(concurrency_limit)=102)”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“PJSIP/102-000000c4”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] NoOp(“PJSIP/102-000000c4”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“PJSIP/102-000000c4”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] GotoIf(“PJSIP/102-000000c4”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [s@macro-user-callerid:37] Set(“PJSIP/102-000000c4”, “CALLERID(number)=102”) in new stack
– Executing [s@macro-user-callerid:38] Set(“PJSIP/102-000000c4”, “CALLERID(name)=John Orfanidis”) in new stack
– Executing [s@macro-user-callerid:39] GotoIf(“PJSIP/102-000000c4”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:40] Set(“PJSIP/102-000000c4”, “CDR(cnam)=John Orfanidis”) in new stack
– Executing [s@macro-user-callerid:41] Set(“PJSIP/102-000000c4”, “CDR(cnum)=102”) in new stack
– Executing [s@macro-user-callerid:42] Set(“PJSIP/102-000000c4”, “CHANNEL(language)=en”) in new stack
– Executing [07519547107@from-internal:2] Gosub(“PJSIP/102-000000c4”, “sub-record-check,s,1(out,07519547107,force)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/102-000000c4”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“PJSIP/102-000000c4”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“PJSIP/102-000000c4”, “NOW=1577191007”) in new stack
– Executing [s@sub-record-check:4] Set(“PJSIP/102-000000c4”, “__DAY=24”) in new stack
– Executing [s@sub-record-check:5] Set(“PJSIP/102-000000c4”, “__MONTH=12”) in new stack
– Executing [s@sub-record-check:6] Set(“PJSIP/102-000000c4”, “__YEAR=2019”) in new stack
– Executing [s@sub-record-check:7] Set(“PJSIP/102-000000c4”, “__TIMESTR=20191224-143647”) in new stack
– Executing [s@sub-record-check:8] Set(“PJSIP/102-000000c4”, “__FROMEXTEN=102”) in new stack
– Executing [s@sub-record-check:9] Set(“PJSIP/102-000000c4”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“PJSIP/102-000000c4”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/102-000000c4”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/102-000000c4”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/102-000000c4”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/102-000000c4”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/102-000000c4”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“PJSIP/102-000000c4”, “Outbound Recording Check from 102 to 07519547107”) in new stack
– Executing [out@sub-record-check:2] Set(“PJSIP/102-000000c4”, “RECMODE=force”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“PJSIP/102-000000c4”, “0?Goto(routewins)”) in new stack
– Executing [out@sub-record-check:4] ExecIf(“PJSIP/102-000000c4”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“PJSIP/102-000000c4”, “recordcheck,1(force,out,07519547107)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/102-000000c4”, “Starting recording check against force”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/102-000000c4”, “force”) in new stack
– Goto (sub-record-check,recordcheck,5)
– Executing [recordcheck@sub-record-check:5] Set(“PJSIP/102-000000c4”, “__REC_POLICY_MODE=FORCE”) in new stack
– Executing [recordcheck@sub-record-check:6] GotoIf(“PJSIP/102-000000c4”, “1?startrec”) in new stack
– Goto (sub-record-check,recordcheck,16)
– Executing [recordcheck@sub-record-check:16] NoOp(“PJSIP/102-000000c4”, “Starting recording: out, 07519547107”) in new stack
– Executing [recordcheck@sub-record-check:17] Set(“PJSIP/102-000000c4”, “__CALLFILENAME=out-07519547107-102-20191224-143647-1577191007.220”) in new stack
– Executing [recordcheck@sub-record-check:18] MixMonitor(“PJSIP/102-000000c4”, “2019/12/24/out-07519547107-102-20191224-143647-1577191007.220.wav,abi(LOCAL_MIXMON_ID),”) in new stack
– Executing [recordcheck@sub-record-check:19] Set(“PJSIP/102-000000c4”, “__MIXMON_ID=0xb7574318”) in new stack
– Executing [recordcheck@sub-record-check:20] Set(“PJSIP/102-000000c4”, “__RECORD_ID=PJSIP/102-000000c4”) in new stack
– Executing [recordcheck@sub-record-check:21] Set(“PJSIP/102-000000c4”, “__REC_STATUS=RECORDING”) in new stack
– Executing [recordcheck@sub-record-check:22] Set(“PJSIP/102-000000c4”, “CDR(recordingfile)=out-07519547107-102-20191224-143647-1577191007.220.wav”) in new stack
– Executing [recordcheck@sub-record-check:23] Return(“PJSIP/102-000000c4”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“PJSIP/102-000000c4”, “”) in new stack
– Executing [07519547107@from-internal:3] ExecIf(“PJSIP/102-000000c4”, “0 ?Set(CDR(accountcode)=)”) in new stack
== Begin MixMonitor Recording PJSIP/102-000000c4
– Executing [07519547107@from-internal:4] Set(“PJSIP/102-000000c4”, “MOHCLASS=default”) in new stack
– Executing [07519547107@from-internal:5] Set(“PJSIP/102-000000c4”, “_NODEST=”) in new stack
– Executing [07519547107@from-internal:6] Macro(“PJSIP/102-000000c4”, “dialout-trunk,2,07519547107,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“PJSIP/102-000000c4”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“PJSIP/102-000000c4”, “0?Set(DIAL_OPTIONS=tr)”) in new stack
– Executing [s@macro-dialout-trunk:3] GosubIf(“PJSIP/102-000000c4”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:4] GotoIf(“PJSIP/102-000000c4”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“PJSIP/102-000000c4”, “DIAL_NUMBER=07519547107”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“PJSIP/102-000000c4”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“PJSIP/102-000000c4”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“PJSIP/102-000000c4”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“PJSIP/102-000000c4”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:10] GotoIf(“PJSIP/102-000000c4”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:11] GotoIf(“PJSIP/102-000000c4”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:12] Macro(“PJSIP/102-000000c4”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:3] ExecIf(“PJSIP/102-000000c4”, “0?Set(REALCALLERIDNUM=102)”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“PJSIP/102-000000c4”, “0?Set(AMPUSER=102)”) in new stack
– Executing [s@macro-outbound-callerid:5] GotoIf(“PJSIP/102-000000c4”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [s@macro-outbound-callerid:9] Set(“PJSIP/102-000000c4”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:10] Set(“PJSIP/102-000000c4”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“PJSIP/102-000000c4”, “TRUNKOUTCID=05603074266”) in new stack
– Executing [s@macro-outbound-callerid:12] GotoIf(“PJSIP/102-000000c4”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,18)
– Executing [s@macro-outbound-callerid:18] ExecIf(“PJSIP/102-000000c4”, “1?Set(CALLERID(all)=05603074266)”) in new stack
– Executing [s@macro-outbound-callerid:19] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:20] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:21] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:23] Set(“PJSIP/102-000000c4”, “CDR(outbound_cnum)=05603074266”) in new stack
– Executing [s@macro-outbound-callerid:24] Set(“PJSIP/102-000000c4”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:13] GosubIf(“PJSIP/102-000000c4”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“PJSIP/102-000000c4”, “OUTNUM=07519547107”) in new stack
– Executing [s@macro-dialout-trunk:15] Set(“PJSIP/102-000000c4”, “custom=PJSIP”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“PJSIP/102-000000c4”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:17] ExecIf(“PJSIP/102-000000c4”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:18] Macro(“PJSIP/102-000000c4”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“PJSIP/102-000000c4”, “”) in new stack
– Executing [s@macro-dialout-trunk:19] GotoIf(“PJSIP/102-000000c4”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“PJSIP/102-000000c4”, “1?Set(CONNECTEDLINE(num,i)=07519547107)”) in new stack
– Executing [s@macro-dialout-trunk:21] ExecIf(“PJSIP/102-000000c4”, “1?Set(CONNECTEDLINE(name,i)=CID:05603074266)”) in new stack
– Executing [s@macro-dialout-trunk:22] ExecIf(“PJSIP/102-000000c4”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)05603074266)”) in new stack
– Executing [s@macro-dialout-trunk:23] GotoIf(“PJSIP/102-000000c4”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:24] Dial(“PJSIP/102-000000c4”, “PJSIP/07519547107@SipGate,300,T”) in new stack
– Called PJSIP/07519547107@SipGate
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:25] NoOp(“PJSIP/102-000000c4”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”) in new stack
– Executing [s@macro-dialout-trunk:26] GotoIf(“PJSIP/102-000000c4”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“PJSIP/102-000000c4”, “RC=21”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“PJSIP/102-000000c4”, “21,1”) in new stack
– Goto (macro-dialout-trunk,21,1)
– Executing [21@macro-dialout-trunk:1] Goto(“PJSIP/102-000000c4”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“PJSIP/102-000000c4”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] ExecIf(“PJSIP/102-000000c4”, “1?Set(CALLERID(number)=102)”) in new stack
– Executing [07519547107@from-internal:7] Macro(“PJSIP/102-000000c4”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“PJSIP/102-000000c4”, “”) in new stack
> 0xb4206938 – Strict RTP learning after remote address set to: 192.168.1.105:16498
– Executing [s@macro-outisbusy:2] GotoIf(“PJSIP/102-000000c4”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“PJSIP/102-000000c4”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“PJSIP/102-000000c4”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
– <PJSIP/102-000000c4> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
> 0xb4206938 – Strict RTP switching to RTP target address 192.168.1.105:16498 as source
[2019-12-24 14:36:49] WARNING[32559][C-0000006c]: file.c:774 ast_openstream_full: File please-try-call-later does not exist in any format
[2019-12-24 14:36:49] WARNING[32559][C-0000006c]: file.c:1247 ast_streamfile: Unable to open please-try-call-later (format (ulaw)): No such file or directory
[2019-12-24 14:36:49] WARNING[32559][C-0000006c]: app_playback.c:494 playback_exec: Playback failed on PJSIP/102-000000c4 for all-circuits-busy-now&please-try-call-later, noanswer
– Executing [s@macro-outisbusy:5] Congestion(“PJSIP/102-000000c4”, “20”) in new stack
[2019-12-24 14:36:49] WARNING[32559][C-0000006c]: channel.c:5091 ast_prod: Prodding channel ‘PJSIP/102-000000c4’ failed
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘PJSIP/102-000000c4’ in macro ‘outisbusy’
== Spawn extension (from-internal, 07519547107, 7) exited non-zero on ‘PJSIP/102-000000c4’
– Executing [h@from-internal:1] Macro(“PJSIP/102-000000c4”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/102-000000c4”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/102-000000c4”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“PJSIP/102-000000c4”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/102-000000c4’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/102-000000c4’
== MixMonitor close filestream (mixed)

Dial was attempted, and the call was rejected by the provider. They should be able to tell you why.

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