What is wrong with my dial pattern? (10digit=All circuits busy)

I just switched from Trixbox to FreePBX and love it except for I’m stuck with two things. One is forcing a logo onto my Polycom IP550s remotely but I’ve made them work through web interface manaully, not the biggest issue. But this problem… I cannot dial without a 1. I have toyed with my dialing options soooo much. Tried everything I could find on the internet so far, nothing has helped.

Here is a screenshot of both the Trunk settings and the Outbound Routes. What am I doing wrong? 11 digit works but 10 gives “All circuits are busy now”.

Please provide console output of a call to a 10 digit number failing.

Connected to Asterisk 1.8.11.0 currently running on freepbx (pid = 3053)
Verbosity is at least 3
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Macro(“SIP/212-000002b7”, “user-callerid,LIMIT,”) in new stack
– Executing [[email protected]:1] Set(“SIP/212-000002b7”, “AMPUSER=212”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/212-000002b7”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/212-000002b7”, “1?Set(REALCALLERIDNUM=212)”) in new stack
– Executing [[email protected]:4] Set(“SIP/212-000002b7”, “AMPUSER=212”) in new stack
– Executing [[email protected]:5] Set(“SIP/212-000002b7”, “AMPUSERCIDNAME=Henry Clark”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/212-000002b7”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/212-000002b7”, “AMPUSERCID=212”) in new stack
– Executing [[email protected]:8] Set(“SIP/212-000002b7”, “CALLERID(all)=“Henry Clark” <212>”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/212-000002b7”, “0?limit”) in new stack
– Executing [[email protected]:10] ExecIf(“SIP/212-000002b7”, “1?Set(GROUP(concurrency_limit)=212)”) in new stack
– Executing [[email protected]:11] GosubIf(“SIP/212-000002b7”, “7?sub-ccss,s,1(from-internal,4073514730)”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/212-000002b7”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“SIP/212-000002b7”, “CCSS_SETUP=TRUE”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/212-000002b7”, “0?monitor_config,1(from-internal,4073514730):monitor_default,1(from-internal,4073514730)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/212-000002b7”, “0?is_exten”) in new stack
– Executing [[email protected]:2] StackPop(“SIP/212-000002b7”, “”) in new stack
– Executing [[email protected]:3] Return(“SIP/212-000002b7”, “FALSE”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/212-000002b7”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/212-000002b7”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [[email protected]:26] Set(“SIP/212-000002b7”, “CALLERID(number)=212”) in new stack
– Executing [[email protected]:27] Set(“SIP/212-000002b7”, “CALLERID(name)=Henry Clark”) in new stack
– Executing [[email protected]:28] Set(“SIP/212-000002b7”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/212-000002b7”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:3] Set(“SIP/212-000002b7”, “_NODEST=”) in new stack
– Executing [[email protected]:4] Gosub(“SIP/212-000002b7”, “sub-record-check,s,1(out,4073514730,)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/212-000002b7”, “1?check”) in new stack
– Goto (sub-record-check,s,3)
– Executing [[email protected]:3] Set(“SIP/212-000002b7”, “MON_FMT=wav”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/212-000002b7”, “1?next”) in new stack
– Goto (sub-record-check,s,7)
– Executing [[email protected]:7] ExecIf(“SIP/212-000002b7”, “0?Return()”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/212-000002b7”, “0?out,1”) in new stack
– Executing [[email protected]:9] Set(“SIP/212-000002b7”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:10] ExecIf(“SIP/212-000002b7”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:11] Set(“SIP/212-000002b7”, “NOW=1335383215”) in new stack
– Executing [[email protected]:12] Set(“SIP/212-000002b7”, “__DAY=25”) in new stack
– Executing [[email protected]:13] Set(“SIP/212-000002b7”, “__MONTH=04”) in new stack
– Executing [[email protected]:14] Set(“SIP/212-000002b7”, “__YEAR=2012”) in new stack
– Executing [[email protected]:15] Set(“SIP/212-000002b7”, “__TIMESTR=20120425-154655”) in new stack
– Executing [[email protected]:16] Set(“SIP/212-000002b7”, “__FROMEXTEN=212”) in new stack
– Executing [[email protected]:17] Set(“SIP/212-000002b7”, “__CALLFILENAME=out-4073514730-212-20120425-154655-1335383215.1621”) in new stack
– Executing [[email protected]:18] Goto(“SIP/212-000002b7”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] ExecIf(“SIP/212-000002b7”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/212-000002b7”, “0?record,1(exten,4073514730,212)”) in new stack
– Executing [[email protected]:3] Return(“SIP/212-000002b7”, “”) in new stack
– Executing [[email protected]:5] Macro(“SIP/212-000002b7”, “dialout-trunk,2,4073514730,”) in new stack
– Executing [[email protected]:1] Set(“SIP/212-000002b7”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/212-000002b7”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/212-000002b7”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/212-000002b7”, “DIAL_NUMBER=4073514730”) in new stack
– Executing [[email protected]:5] Set(“SIP/212-000002b7”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/212-000002b7”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/212-000002b7”, “0?nomax”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/212-000002b7”, “0?chanfull”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/212-000002b7”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/212-000002b7”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/212-000002b7”, “outbound-callerid,2”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/212-000002b7”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/212-000002b7”, “0?Set(REALCALLERIDNUM=212)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/212-000002b7”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/212-000002b7”, “USEROUTCID=4074201800”) in new stack
– Executing [[email protected]:7] Set(“SIP/212-000002b7”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/212-000002b7”, “TRUNKOUTCID=4074201800”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/212-000002b7”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/212-000002b7”, “1?Set(CALLERID(all)=4074201800)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/212-000002b7”, “1?Set(CALLERID(all)=4074201800)”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/212-000002b7”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/212-000002b7”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/212-000002b7”, “1?sub-flp-2,s,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/212-000002b7”, “0?Set(TARGET_FLP_2=3514730)”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/212-000002b7”, “0?match”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/212-000002b7”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/212-000002b7”, “0?Set(TARGET_FLP_2=14074073514730)”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/212-000002b7”, “0?match”) in new stack
– Executing [[email protected]:6] Return(“SIP/212-000002b7”, “”) in new stack
– Executing [[email protected]:13] Set(“SIP/212-000002b7”, “OUTNUM=4073514730”) in new stack
– Executing [[email protected]:14] Set(“SIP/212-000002b7”, “custom=SIP/VP-SIPJFKA”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/212-000002b7”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/212-000002b7”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/212-000002b7”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/212-000002b7”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/212-000002b7”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/212-000002b7”, “1?Set(CONNECTEDLINE(num,i)=4073514730)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/212-000002b7”, “1?Set(CONNECTEDLINE(name,i)=CID:4074201800)”) in new stack
– Executing [[email protected]:21] GotoIf(“SIP/212-000002b7”, “0?customtrunk”) in new stack
– Executing [[email protected]:22] Dial(“SIP/212-000002b7”, “SIP/VP-SIPJFKA/4073514730,300,”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/VP-SIPJFKA/4073514730
– Got SIP response 503 “Service Unavailable” back from 64.61.93.190:5060
– SIP/VP-SIPJFKA-000002b8 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:23] NoOp(“SIP/212-000002b7”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34”) in new stack
– Executing [[email protected]:24] Goto(“SIP/212-000002b7”, “s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] Set(“SIP/212-000002b7”, “RC=34”) in new stack
– Executing [[email protected]:2] Goto(“SIP/212-000002b7”, “34,1”) in new stack
– Goto (macro-dialout-trunk,34,1)
– Executing [[email protected]:1] Goto(“SIP/212-000002b7”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“SIP/212-000002b7”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“SIP/212-000002b7”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“SIP/212-000002b7”, “CALLERID(number)=212”) in new stack
– Executing [[email protected]:6] Macro(“SIP/212-000002b7”, “dialout-trunk,3,4073514730,”) in new stack
– Executing [[email protected]:1] Set(“SIP/212-000002b7”, “DIAL_TRUNK=3”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/212-000002b7”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/212-000002b7”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/212-000002b7”, “DIAL_NUMBER=4073514730”) in new stack
– Executing [[email protected]:5] Set(“SIP/212-000002b7”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/212-000002b7”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/212-000002b7”, “0?nomax”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/212-000002b7”, “0?chanfull”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/212-000002b7”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/212-000002b7”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/212-000002b7”, “outbound-callerid,3”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/212-000002b7”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/212-000002b7”, “0?Set(REALCALLERIDNUM=212)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/212-000002b7”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/212-000002b7”, “USEROUTCID=4074201800”) in new stack
– Executing [[email protected]:7] Set(“SIP/212-000002b7”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/212-000002b7”, “TRUNKOUTCID=4074201800”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/212-000002b7”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/212-000002b7”, “1?Set(CALLERID(all)=4074201800)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/212-000002b7”, “1?Set(CALLERID(all)=4074201800)”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/212-000002b7”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/212-000002b7”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/212-000002b7”, “1?sub-flp-3,s,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/212-000002b7”, “0?Set(TARGET_FLP_3=073514730)”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/212-000002b7”, “0?match”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/212-000002b7”, “1?Set(TARGET_FLP_3=13514730)”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/212-000002b7”, “1?match”) in new stack
– Goto (sub-flp-3,s,8)
– Executing [[email protected]:8] Set(“SIP/212-000002b7”, “DIAL_NUMBER=13514730”) in new stack
– Executing [[email protected]:9] Return(“SIP/212-000002b7”, “”) in new stack
– Executing [[email protected]:13] Set(“SIP/212-000002b7”, “OUTNUM=+13514730”) in new stack
– Executing [[email protected]:14] Set(“SIP/212-000002b7”, “custom=SIP/VP-SIPJFKB”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/212-000002b7”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/212-000002b7”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/212-000002b7”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/212-000002b7”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/212-000002b7”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/212-000002b7”, “1?Set(CONNECTEDLINE(num,i)=13514730)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/212-000002b7”, “1?Set(CONNECTEDLINE(name,i)=CID:4074201800)”) in new stack
– Executing [[email protected]:21] GotoIf(“SIP/212-000002b7”, “0?customtrunk”) in new stack
– Executing [[email protected]:22] Dial(“SIP/212-000002b7”, “SIP/VP-SIPJFKB/+13514730,300,”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/VP-SIPJFKB/+13514730
– Got SIP response 500 “Nice try” back from 209.31.18.12:5060
– SIP/VP-SIPJFKB-000002b9 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:23] NoOp(“SIP/212-000002b7”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 38”) in new stack
– Executing [[email protected]:24] Goto(“SIP/212-000002b7”, “s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] Set(“SIP/212-000002b7”, “RC=38”) in new stack
– Executing [[email protected]:2] Goto(“SIP/212-000002b7”, “38,1”) in new stack
– Goto (macro-dialout-trunk,38,1)
– Executing [[email protected]:1] Goto(“SIP/212-000002b7”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“SIP/212-000002b7”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“SIP/212-000002b7”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 38 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“SIP/212-000002b7”, “CALLERID(number)=212”) in new stack
– Executing [[email protected]:7] Macro(“SIP/212-000002b7”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/212-000002b7”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/212-000002b7”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/212-000002b7”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“SIP/212-000002b7”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/212-000002b7> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/212-000002b7’ in macro ‘outisbusy’
== Spawn extension (from-internal, 4073514730, 7) exited non-zero on ‘SIP/212-000002b7’
– Executing [[email protected]:1] Hangup(“SIP/212-000002b7”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/212-000002b7’
freepbx*CLI>

You don’t have an outbound route matching 10 digits ie “NXXNXXXXXX”

I would delete all the trunk entries

In the outbound route for NADP use:

() + | [1NXXNXXXXXX/]
(1) + | [NXXNXXXXXX/]
(1407) + | [NXXXXXX/]

This way, everything sent to the trunk is already standardized at 11 digits

I would do a separate outbound route for your emergency, toll free, and international traffic because you might want to send each to a different trunk.

That fixed it! Thank you so much! I just could not get that right combination.