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 [[email protected]:1] Macro(“PJSIP/102-000000c4”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/102-000000c4”, “TOUCH_MONITOR=1577191007.220”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/102-000000c4”, “AMPUSER=102”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/102-000000c4”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/102-000000c4”, “1?Set(REALCALLERIDNUM=102)”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/102-000000c4”, “AMPUSER=102”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/102-000000c4”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/102-000000c4”, “AMPUSERCIDNAME=John Orfanidis”) in new stack
– Executing [[email protected]:8] ExecIf(“PJSIP/102-000000c4”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/102-000000c4”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/102-000000c4”, “AMPUSERCID=102”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/102-000000c4”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/102-000000c4”, “CALLERID(all)=“John Orfanidis” <102>”) in new stack
– Executing [[email protected]:13] GotoIf(“PJSIP/102-000000c4”, “0?limit”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/102-000000c4”, “1?Set(GROUP(concurrency_limit)=102)”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/102-000000c4”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:16] NoOp(“PJSIP/102-000000c4”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:17] GotoIf(“PJSIP/102-000000c4”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] GotoIf(“PJSIP/102-000000c4”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [[email protected]:37] Set(“PJSIP/102-000000c4”, “CALLERID(number)=102”) in new stack
– Executing [[email protected]:38] Set(“PJSIP/102-000000c4”, “CALLERID(name)=John Orfanidis”) in new stack
– Executing [[email protected]:39] GotoIf(“PJSIP/102-000000c4”, “0?cnum”) in new stack
– Executing [[email protected]:40] Set(“PJSIP/102-000000c4”, “CDR(cnam)=John Orfanidis”) in new stack
– Executing [[email protected]:41] Set(“PJSIP/102-000000c4”, “CDR(cnum)=102”) in new stack
– Executing [[email protected]:42] Set(“PJSIP/102-000000c4”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Gosub(“PJSIP/102-000000c4”, “sub-record-check,s,1(out,07519547107,force)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/102-000000c4”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/102-000000c4”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/102-000000c4”, “NOW=1577191007”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/102-000000c4”, “__DAY=24”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/102-000000c4”, “__MONTH=12”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/102-000000c4”, “__YEAR=2019”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/102-000000c4”, “__TIMESTR=20191224-143647”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/102-000000c4”, “__FROMEXTEN=102”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/102-000000c4”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/102-000000c4”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/102-000000c4”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/102-000000c4”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/102-000000c4”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/102-000000c4”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/102-000000c4”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“PJSIP/102-000000c4”, “Outbound Recording Check from 102 to 07519547107”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/102-000000c4”, “RECMODE=force”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/102-000000c4”, “0?Goto(routewins)”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/102-000000c4”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“PJSIP/102-000000c4”, “recordcheck,1(force,out,07519547107)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/102-000000c4”, “Starting recording check against force”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/102-000000c4”, “force”) in new stack
– Goto (sub-record-check,recordcheck,5)
– Executing [[email protected]:5] Set(“PJSIP/102-000000c4”, “__REC_POLICY_MODE=FORCE”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/102-000000c4”, “1?startrec”) in new stack
– Goto (sub-record-check,recordcheck,16)
– Executing [[email protected]:16] NoOp(“PJSIP/102-000000c4”, “Starting recording: out, 07519547107”) in new stack
– Executing [[email protected]:17] Set(“PJSIP/102-000000c4”, “__CALLFILENAME=out-07519547107-102-20191224-143647-1577191007.220”) in new stack
– Executing [[email protected]:18] MixMonitor(“PJSIP/102-000000c4”, “2019/12/24/out-07519547107-102-20191224-143647-1577191007.220.wav,abi(LOCAL_MIXMON_ID),”) in new stack
– Executing [[email protected]:19] Set(“PJSIP/102-000000c4”, “__MIXMON_ID=0xb7574318”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/102-000000c4”, “__RECORD_ID=PJSIP/102-000000c4”) in new stack
– Executing [[email protected]:21] Set(“PJSIP/102-000000c4”, “__REC_STATUS=RECORDING”) in new stack
– Executing [[email protected]:22] Set(“PJSIP/102-000000c4”, “CDR(recordingfile)=out-07519547107-102-20191224-143647-1577191007.220.wav”) in new stack
– Executing [[email protected]:23] Return(“PJSIP/102-000000c4”, “”) in new stack
– Executing [[email protected]:8] Return(“PJSIP/102-000000c4”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/102-000000c4”, “0 ?Set(CDR(accountcode)=)”) in new stack
== Begin MixMonitor Recording PJSIP/102-000000c4
– Executing [[email protected]:4] Set(“PJSIP/102-000000c4”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/102-000000c4”, “_NODEST=”) in new stack
– Executing [[email protected]:6] Macro(“PJSIP/102-000000c4”, “dialout-trunk,2,07519547107,off”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/102-000000c4”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/102-000000c4”, “0?Set(DIAL_OPTIONS=tr)”) in new stack
– Executing [[email protected]:3] GosubIf(“PJSIP/102-000000c4”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:4] GotoIf(“PJSIP/102-000000c4”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/102-000000c4”, “DIAL_NUMBER=07519547107”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/102-000000c4”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/102-000000c4”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/102-000000c4”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/102-000000c4”, “0?nomax”) in new stack
– Executing [[email protected]:10] GotoIf(“PJSIP/102-000000c4”, “0?chanfull”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/102-000000c4”, “0?skipoutcid”) in new stack
– Executing [[email protected]:12] Macro(“PJSIP/102-000000c4”, “outbound-callerid,2”) in new stack
– Executing [[email protected]:1] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/102-000000c4”, “0?Set(REALCALLERIDNUM=102)”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/102-000000c4”, “0?Set(AMPUSER=102)”) in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/102-000000c4”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [[email protected]:9] Set(“PJSIP/102-000000c4”, “USEROUTCID=”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/102-000000c4”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/102-000000c4”, “TRUNKOUTCID=05603074266”) in new stack
– Executing [[email protected]:12] GotoIf(“PJSIP/102-000000c4”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,18)
– Executing [[email protected]:18] ExecIf(“PJSIP/102-000000c4”, “1?Set(CALLERID(all)=05603074266)”) in new stack
– Executing [[email protected]:19] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:20] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:21] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:22] ExecIf(“PJSIP/102-000000c4”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:23] Set(“PJSIP/102-000000c4”, “CDR(outbound_cnum)=05603074266”) in new stack
– Executing [[email protected]:24] Set(“PJSIP/102-000000c4”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:13] GosubIf(“PJSIP/102-000000c4”, “0?sub-flp-2,s,1()”) in new stack
– Executing [[email protected]:14] Set(“PJSIP/102-000000c4”, “OUTNUM=07519547107”) in new stack
– Executing [[email protected]:15] Set(“PJSIP/102-000000c4”, “custom=PJSIP”) in new stack
– Executing [[email protected]:16] ExecIf(“PJSIP/102-000000c4”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:17] ExecIf(“PJSIP/102-000000c4”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:18] Macro(“PJSIP/102-000000c4”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“PJSIP/102-000000c4”, “”) in new stack
– Executing [[email protected]:19] GotoIf(“PJSIP/102-000000c4”, “0?bypass,1”) in new stack
– Executing [[email protected]:20] ExecIf(“PJSIP/102-000000c4”, “1?Set(CONNECTEDLINE(num,i)=07519547107)”) in new stack
– Executing [[email protected]:21] ExecIf(“PJSIP/102-000000c4”, “1?Set(CONNECTEDLINE(name,i)=CID:05603074266)”) in new stack
– Executing [[email protected]:22] ExecIf(“PJSIP/102-000000c4”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)05603074266)”) in new stack
– Executing [[email protected]:23] GotoIf(“PJSIP/102-000000c4”, “0?customtrunk”) in new stack
– Executing [[email protected]:24] Dial(“PJSIP/102-000000c4”, “PJSIP/[email protected],300,T”) in new stack
– Called PJSIP/[email protected]
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:25] NoOp(“PJSIP/102-000000c4”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”) in new stack
– Executing [[email protected]:26] GotoIf(“PJSIP/102-000000c4”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“PJSIP/102-000000c4”, “RC=21”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/102-000000c4”, “21,1”) in new stack
– Goto (macro-dialout-trunk,21,1)
– Executing [[email protected]:1] Goto(“PJSIP/102-000000c4”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] NoOp(“PJSIP/102-000000c4”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/102-000000c4”, “1?Set(CALLERID(number)=102)”) in new stack
– Executing [[email protected]:7] Macro(“PJSIP/102-000000c4”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“PJSIP/102-000000c4”, “”) in new stack
> 0xb4206938 – Strict RTP learning after remote address set to: 192.168.1.105:16498
– Executing [[email protected]:2] GotoIf(“PJSIP/102-000000c4”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/102-000000c4”, “0?intracompany,1”) in new stack
– Executing [[email protected]: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 [[email protected]: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 [[email protected]:1] Macro(“PJSIP/102-000000c4”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/102-000000c4”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“PJSIP/102-000000c4”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]: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.