Can't call out to some area codes (808, 425, etc.)

I am fairly new to Asterisk/FreePBX, so I’m sure I’ve missed something obvious here. I can make both local (set up as NXXNXXXXXX) and long distance (currently 1NXXNXXXXXX) calls to nearly every number I’ve tried, but for some reason I cannot make calls to area codes 425 and 808. Now I’ve done some digging and determined that these correspond to codes that terminate in messages like “all circuits are busy” and such. Furthermore I see that these codes seem to be country specific and there is even a file where I can include codes for additional countries and so on. Wonderful.

I’ve seen it suggested that I set up rules in my dial plan for these area codes such as:
1425NXXXXXX
1808NXXXXXX

Tried this. Reloaded Asterisk. Even rebooted phone (Aastra 6757i). No dice. Weird thing is people from these area codes can call IN. Great. If you can tell me what I’ve missed you will have my eternal gratitude.

You need to post a copy of the system log for the time period of when you dial the number that does not work.

Also, always provide FreePBX and Asterisk verion, the way the system was installed (distro or from tarball).

Log file is in /var/log/asterisk/full make sure verbosity is set to at least 10.

Also use the [code]tags[/code] or post using pastebin.ca so we can easily read the logs.

Thanks for the quick response. I knew I bet on the right horse with FreePBX. I am using:

FreePBX 2.7.0.10
Asterisk 1.6.2.11
Installed using AsteriskNow 1.6 < starting to think this shortcut was a mistake
Using SIPStation Module < again, maybe wasted more time that it saved

I cranked up the verbosity and got this dialing 1808292**** (some numbers *ed out here and below for obvious reasons):

[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/229-00000092", "") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/229-00000092", "0?bypass,1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/229-00000092", "0?customtrunk") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:19] Dial("SIP/229-00000092", "SIP/fpbx-1-**************/1808292****,300,") in new stack
[Oct 14 18:55:12] VERBOSE[26098] netsock.c:   == Using SIP RTP TOS bits 184
[Oct 14 18:55:12] VERBOSE[26098] netsock.c:   == Using SIP RTP CoS mark 5
[Oct 14 18:55:12] VERBOSE[26098] app_dial.c:     -- Called fpbx-1-**************/1808292****
[Oct 14 18:55:12] VERBOSE[26098] app_dial.c:     -- SIP/fpbx-1-***************-00000093 is circuit-busy
[Oct 14 18:55:12] VERBOSE[26098] app_dial.c:   == Everyone is busy/congested at this time (1:0/1/0)
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/229-00000092", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:21] Goto("SIP/229-00000092", "s-CONGESTION,1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,s-CONGESTION,1)
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/229-00000092", "RC=1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/229-00000092", "1,1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,1,1)
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [1@macro-dialout-trunk:1] Goto("SIP/229-00000092", "continue,1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,continue,1)
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/229-00000092", "1?noreport") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,continue,3)
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/229-00000092", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 1 - failing through to other trunks") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [continue@macro-dialout-trunk:4] Set("SIP/229-00000092", "CALLERID(number)=229") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [1808292****@from-internal:7] Macro("SIP/229-00000092", "dialout-trunk,3,1808292****,,") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:1] Set("SIP/229-00000092", "DIAL_TRUNK=3") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/229-00000092", "0?sub-pincheck,s,1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/229-00000092", "0?disabletrunk,1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:4] Set("SIP/229-00000092", "DIAL_NUMBER=1808292****") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:5] Set("SIP/229-00000092", "DIAL_TRUNK_OPTIONS=tr") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:6] Set("SIP/229-00000092", "OUTBOUND_GROUP=OUT_3") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/229-00000092", "1?nomax") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,s,9)
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/229-00000092", "0?skipoutcid") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:10] Set("SIP/229-00000092", "DIAL_TRUNK_OPTIONS=") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:11] Macro("SIP/229-00000092", "outbound-callerid,3") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/229-00000092", "0?Set(CALLERPRES()=)") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/229-00000092", "0?Set(REALCALLERIDNUM=229)") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/229-00000092", "1?normcid") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Goto (macro-outbound-callerid,s,6)
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:6] Set("SIP/229-00000092", "USEROUTCID=5035461706") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:7] Set("SIP/229-00000092", "EMERGENCYCID=") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:8] Set("SIP/229-00000092", "TRUNKOUTCID=5034986486") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/229-00000092", "1?trunkcid") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Goto (macro-outbound-callerid,s,12)
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/229-00000092", "1?Set(CALLERID(all)=5034986486)") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/229-00000092", "1?Set(CALLERID(all)=5035461706)") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/229-00000092", "1?Set(CALLERID(all)=503227****)") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/229-00000092", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/229-00000092", "0?AGI(fixlocalprefix)") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:13] Set("SIP/229-00000092", "OUTNUM=1808292****") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:14] Set("SIP/229-00000092", "custom=SIP/fpbx-2-**************") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/229-00000092", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:16] Macro("SIP/229-00000092", "dialout-trunk-predial-hook,") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/229-00000092", "") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/229-00000092", "0?bypass,1") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/229-00000092", "0?customtrunk") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/229-00000092", "0?customtrunk") in new stack
[Oct 14 18:55:12] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:19] Dial("SIP/229-00000092", "SIP/fpbx-2-*****************/1808292****,300,") in new stack
[Oct 14 18:55:12] VERBOSE[26098] netsock.c:   == Using SIP RTP TOS bits 184
[Oct 14 18:55:12] VERBOSE[26098] netsock.c:   == Using SIP RTP CoS mark 5
[Oct 14 18:55:12] VERBOSE[26098] app_dial.c:     -- Called fpbx-2-**************/1808292****
[Oct 14 18:55:13] VERBOSE[26098] app_dial.c:     -- SIP/fpbx-2-**************-00000094 is circuit-busy
[Oct 14 18:55:13] VERBOSE[26098] app_dial.c:   == Everyone is busy/congested at this time (1:0/1/0)
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/229-00000092", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 1") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:21] Goto("SIP/229-00000092", "s-CONGESTION,1") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,s-CONGESTION,1)
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/229-00000092", "RC=1") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/229-00000092", "1,1") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,1,1)
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [1@macro-dialout-trunk:1] Goto("SIP/229-00000092", "continue,1") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,continue,1)
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/229-00000092", "1?noreport") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,continue,3)
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/229-00000092", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 1 - failing through to other trunks") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [continue@macro-dialout-trunk:4] Set("SIP/229-00000092", "CALLERID(number)=229") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [1808292****@from-internal:8] Macro("SIP/229-00000092", "outisbusy,") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outisbusy:1] Progress("SIP/229-00000092", "") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outisbusy:2] Playback("SIP/229-00000092", "all-circuits-busy-now,noanswer") in new stack
[Oct 14 18:55:13] VERBOSE[26098] file.c:     -- <SIP/229-00000092> Playing 'all-circuits-busy-now.gsm' (language 'en')
[Oct 14 18:55:13] VERBOSE[26105] manager.c:   == Manager 'aastra-xml' logged on from 127.0.0.1
[Oct 14 18:55:13] VERBOSE[26105] manager.c:   == Manager 'aastra-xml' logged off from 127.0.0.1
[Oct 14 18:55:14] VERBOSE[26098] pbx.c:     -- Executing [s@macro-outisbusy:3] Playback("SIP/229-00000092", "pls-try-call-later,noanswer") in new stack
[Oct 14 18:55:14] VERBOSE[26098] file.c:     -- <SIP/229-00000092> Playing 'pls-try-call-later.gsm' (language 'en')
[Oct 14 18:55:15] VERBOSE[26106] manager.c:   == Manager 'admin' logged on from 127.0.0.1
[Oct 14 18:55:16] VERBOSE[26106] manager.c:   == Manager 'admin' logged off from 127.0.0.1
[Oct 14 18:55:16] VERBOSE[6870] chan_sip.c:   == Extension Changed 229[ext-local] new state Idle for Notify User 211
[Oct 14 18:55:16] VERBOSE[26098] app_macro.c:   == Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/229-00000092' in macro 'outisbusy'
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:   == Spawn extension (from-internal, 1808292****, 8) exited non-zero on 'SIP/229-00000092'
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:     -- Executing [h@from-internal:1] Macro("SIP/229-00000092", "hangupcall") in new stack
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:     -- Executing [s@macro-hangupcall:1] GotoIf("SIP/229-00000092", "1?skiprg") in new stack
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:     -- Goto (macro-hangupcall,s,4)
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:     -- Executing [s@macro-hangupcall:4] GotoIf("SIP/229-00000092", "1?skipblkvm") in new stack
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:     -- Goto (macro-hangupcall,s,7)
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:     -- Executing [s@macro-hangupcall:7] GotoIf("SIP/229-00000092", "1?theend") in new stack
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:     -- Goto (macro-hangupcall,s,9)
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:     -- Executing [s@macro-hangupcall:9] Hangup("SIP/229-00000092", "") in new stack
[Oct 14 18:55:16] VERBOSE[26098] app_macro.c:   == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/229-00000092' in macro 'hangupcall'
[Oct 14 18:55:16] VERBOSE[26098] pbx.c:   == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/229-00000092'

The far end is rejecting the call:

[Oct 14 18:55:12] VERBOSE[26098] app_dial.c:     -- Called fpbx-2-**************/1808292****
[Oct 14 18:55:13] VERBOSE[26098] app_dial.c:     -- SIP/fpbx-2-**************-00000094 is circuit-busy
[Oct 14 18:55:13] VERBOSE[26098] app_dial.c:   == Everyone is busy/congested at this time (1:0/1/0)
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/229-00000092", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 1") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Executing [s@macro-dialout-trunk:21] Goto("SIP/229-00000092", "s-CONGESTION,1") in new stack
[Oct 14 18:55:13] VERBOSE[26098] pbx.c:     -- Goto (macro-dialout-trunk,s-CONGESTION,1)

Try setting up a trunk with another provider, like Flowroute.com, VOIP.ms, or Callcentric.com. If the call goes through with them, then the problem is with your SIP trunk provider.