Hello to all,
This is my first post to Free PBX. I am at my whits end. I have 2 POTS lines and a IAX Trunk line with 3 numbers from a friend’s Free PBX. I am using 2.9.0.7 Free PBX and 1.6.2.20 Asterisk. I’m not much of a Asterisk power user, more of a phone guy.
Here’s the problem,
POTS lines are OK. All outgoing calls for both trunks work. If I call my IAX trunk from the outside world I get the “All circuits are busy” recording. If my friend calls me from his Free PBX using my 4 digit extension to my IAX trunk it works. The problem seems to be my PBX doesn’t know how to handle a 7 or 10 digit CID.
Here’s my CLI when the inbound call fails. Sorry it’s so long. Thanks in advance.
-- Executing [[email protected]:12] GotoIf("IAX2/stevetrix-372", "1?continue") in new stack
-- Goto (macro-user-callerid,s,25)
-- Executing [[email protected]:25] Set("IAX2/stevetrix-372", "CALLERID(number)=6505901804") in new stack
-- Executing [[email protected]:26] Set("IAX2/stevetrix-372", "CALLERID(name)=6505901804") in new stack
-- Executing [[email protected]:2] Set("IAX2/stevetrix-372", "MOHCLASS=default") in new stack
-- Executing [[email protected]:3] Set("IAX2/stevetrix-372", "_NODEST=") in new stack
-- Executing [[email protected]:4] Macro("IAX2/stevetrix-372", "record-enable,,OUT,") in new stack
-- Executing [[email protected]:1] GotoIf("IAX2/stevetrix-372", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [[email protected]:4] ExecIf("IAX2/stevetrix-372", "1?MacroExit()") in new stack
-- Executing [[email protected]:5] Macro("IAX2/stevetrix-372", "dialout-trunk,2,6505901846,") in new stack
-- Executing [[email protected]:1] Set("IAX2/stevetrix-372", "DIAL_TRUNK=2") in new stack
-- Executing [[email protected]:2] GosubIf("IAX2/stevetrix-372", "0?sub-pincheck,s,1") in new stack
-- Executing [[email protected]:3] GotoIf("IAX2/stevetrix-372", "0?disabletrunk,1") in new stack
-- Executing [[email protected]:4] Set("IAX2/stevetrix-372", "DIAL_NUMBER=6505901846") in new stack
-- Executing [[email protected]:5] Set("IAX2/stevetrix-372", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [[email protected]:6] Set("IAX2/stevetrix-372", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [[email protected]:7] GotoIf("IAX2/stevetrix-372", "0?nomax") in new stack
-- Executing [[email protected]:8] GotoIf("IAX2/stevetrix-372", "0?chanfull") in new stack
-- Executing [[email protected]:9] GotoIf("IAX2/stevetrix-372", "0?skipoutcid") in new stack
-- Executing [[email protected]:10] Set("IAX2/stevetrix-372", "DIAL_TRUNK_OPTIONS=t") in new stack
-- Executing [[email protected]:11] Macro("IAX2/stevetrix-372", "outbound-callerid,2") in new stack
-- Executing [[email protected]:1] ExecIf("IAX2/stevetrix-372", "0?Set(CALLERPRES()=)") in new stack
-- Executing [[email protected]:2] ExecIf("IAX2/stevetrix-372", "0?Set(REALCALLERIDNUM=6505901804)") in new stack
-- Executing [[email protected]:3] GotoIf("IAX2/stevetrix-372", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [[email protected]:6] Set("IAX2/stevetrix-372", "USEROUTCID=") in new stack
-- Executing [[email protected]:7] Set("IAX2/stevetrix-372", "EMERGENCYCID=") in new stack
-- Executing [[email protected]:8] Set("IAX2/stevetrix-372", "TRUNKOUTCID=<650 590 1846>") in new stack
-- Executing [[email protected]:9] GotoIf("IAX2/stevetrix-372", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [[email protected]:12] ExecIf("IAX2/stevetrix-372", "1?Set(CALLERID(all)=<650 590 1846>)") in new stack
-- Executing [[email protected]:13] ExecIf("IAX2/stevetrix-372", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:14] ExecIf("IAX2/stevetrix-372", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:15] ExecIf("IAX2/stevetrix-372", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [[email protected]:12] GosubIf("IAX2/stevetrix-372", "0?sub-flp-2,s,1") in new stack
-- Executing [[email protected]:13] Set("IAX2/stevetrix-372", "OUTNUM=6505901846") in new stack
-- Executing [[email protected]:14] Set("IAX2/stevetrix-372", "custom=IAX2/TEA") in new stack
-- Executing [[email protected]:15] ExecIf("IAX2/stevetrix-372", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)t)") in new stack
-- Executing [[email protected]:16] ExecIf("IAX2/stevetrix-372", "0?Set(DIAL_TRUNK_OPTIONS=tM(confirm))") in new stack
-- Executing [[email protected]:17] Macro("IAX2/stevetrix-372", "dialout-trunk-predial-hook,") in new stack
-- Executing [[email protected]:1] MacroExit("IAX2/stevetrix-372", "") in new stack
-- Executing [[email protected]:18] GotoIf("IAX2/stevetrix-372", "0?bypass,1") in new stack
-- Executing [[email protected]:19] GotoIf("IAX2/stevetrix-372", "0?customtrunk") in new stack
-- Executing [[email protected]:20] Dial("IAX2/stevetrix-372", "IAX2/TEA/6505901846,300,t") in new stack
-- Called TEA/6505901846
-- Hungup 'IAX2/TEA-1468'
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:21] NoOp(“IAX2/stevetrix-372”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 3”) in new stack
– Executing [[email protected]:22] Goto(“IAX2/stevetrix-372”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“IAX2/stevetrix-372”, “RC=3”) in new stack
– Executing [[email protected]:2] Goto(“IAX2/stevetrix-372”, “3,1”) in new stack
– Goto (macro-dialout-trunk,3,1)
– Executing [[email protected]:1] Goto(“IAX2/stevetrix-372”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“IAX2/stevetrix-372”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“IAX2/stevetrix-372”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 3 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“IAX2/stevetrix-372”, “CALLERID(number)=”) in new stack
– Executing [[email protected]:6] Macro(“IAX2/stevetrix-372”, “dialout-trunk,1,6505901846,”) in new stack
– Executing [[email protected]:1] Set(“IAX2/stevetrix-372”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] GosubIf(“IAX2/stevetrix-372”, “0?sub-pincheck,s,1”) in new stack
– Executing [[email protected]:3] GotoIf(“IAX2/stevetrix-372”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“IAX2/stevetrix-372”, “DIAL_NUMBER=6505901846”) in new stack
– Executing [[email protected]:5] Set(“IAX2/stevetrix-372”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“IAX2/stevetrix-372”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:7] GotoIf(“IAX2/stevetrix-372”, “0?nomax”) in new stack
– Executing [[email protected]:8] GotoIf(“IAX2/stevetrix-372”, “0?chanfull”) in new stack
– Executing [[email protected]:9] GotoIf(“IAX2/stevetrix-372”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“IAX2/stevetrix-372”, “DIAL_TRUNK_OPTIONS=t”) in new stack
– Executing [[email protected]:11] Macro(“IAX2/stevetrix-372”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] ExecIf(“IAX2/stevetrix-372”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“IAX2/stevetrix-372”, “0?Set(REALCALLERIDNUM=)”) in new stack
– Executing [[email protected]:3] GotoIf(“IAX2/stevetrix-372”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“IAX2/stevetrix-372”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“IAX2/stevetrix-372”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“IAX2/stevetrix-372”, “TRUNKOUTCID=510 885 1111”) in new stack
– Executing [[email protected]:9] GotoIf(“IAX2/stevetrix-372”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“IAX2/stevetrix-372”, “1?Set(CALLERID(all)=510 885 1111)”) in new stack
– Executing [[email protected]:13] ExecIf(“IAX2/stevetrix-372”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:14] ExecIf(“IAX2/stevetrix-372”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:15] ExecIf(“IAX2/stevetrix-372”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] GosubIf(“IAX2/stevetrix-372”, “0?sub-flp-1,s,1”) in new stack
– Executing [[email protected]:13] Set(“IAX2/stevetrix-372”, “OUTNUM=6505901846”) in new stack
– Executing [[email protected]:14] Set(“IAX2/stevetrix-372”, “custom=DAHDI/g0”) in new stack
– Executing [[email protected]:15] ExecIf(“IAX2/stevetrix-372”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)t)”) in new stack
– Executing [[email protected]:16] ExecIf(“IAX2/stevetrix-372”, “0?Set(DIAL_TRUNK_OPTIONS=tM(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“IAX2/stevetrix-372”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“IAX2/stevetrix-372”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“IAX2/stevetrix-372”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] GotoIf(“IAX2/stevetrix-372”, “0?customtrunk”) in new stack
– Executing [[email protected]:20] Dial(“IAX2/stevetrix-372”, “DAHDI/g0/6505901846,300,t”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:21] NoOp(“IAX2/stevetrix-372”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0”) in new stack
– Executing [[email protected]:22] Goto(“IAX2/stevetrix-372”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“IAX2/stevetrix-372”, “RC=0”) in new stack
– Executing [[email protected]:2] Goto(“IAX2/stevetrix-372”, “0,1”) in new stack
– Goto (macro-dialout-trunk,0,1)
– Executing [[email protected]:1] Goto(“IAX2/stevetrix-372”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“IAX2/stevetrix-372”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“IAX2/stevetrix-372”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“IAX2/stevetrix-372”, “CALLERID(number)=”) in new stack
– Executing [[email protected]:7] Macro(“IAX2/stevetrix-372”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“IAX2/stevetrix-372”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“IAX2/stevetrix-372”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“IAX2/stevetrix-372”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“IAX2/stevetrix-372”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <IAX2/stevetrix-372> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)
– <IAX2/stevetrix-372> Playing ‘pls-try-call-later.gsm’ (language ‘en’)
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘IAX2/stevetrix-372’ in macro ‘outisbusy’
== Spawn extension (from-internal, 6505901846, 7) exited non-zero on ‘IAX2/stevetrix-372’
– Executing [[email protected]:1] Hangup(“IAX2/stevetrix-372”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘IAX2/stevetrix-372’
– Hungup 'IAX2/stevetrix-372’
localhost*CLI>