I cannot Dial any 800 numbers

Can any one help.
I install FreePBX version 2.3.1.3 every thing works with exception when I try dialing any 800 number. I can trying i get the below error. Any one had this problem before.

-- Executing [[email protected]:1] Macro("SIP/502-08717418", "dialout-trunk|1|18xx-5646436|") in new stack
-- Executing [[email protected]:1] Set("SIP/502-08717418", "DIAL_TRUNK=1") in new stack
-- Executing [[email protected]nk:2] Set("SIP/502-08717418", "DIAL_NUMBER=18xx-5646436") in new stack
-- Executing [[email protected]:3] Set("SIP/502-08717418", "ROUTE_PASSWD=") in new stack
-- Executing [[email protected]:4] GotoIf("SIP/502-08717418", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,6)
-- Executing [[email protected]:6] GotoIf("SIP/502-08717418", "0?disabletrunk|1") in new stack
-- Executing [[email protected]:7] Set("SIP/502-08717418", "_NODEST=") in new stack
-- Executing [[email protected]:8] Set("SIP/502-08717418", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [[email protected]:9] Set("SIP/502-08717418", "GROUP()=OUT_1") in new stack
-- Executing [[email protected]:10] Macro("SIP/502-08717418", "user-callerid|SKIPTTL") in new stack
-- Executing [[email protected]:1] NoOp("SIP/502-08717418", "user-callerid: device 502") in new stack
-- Executing [[email protected]:2] Set("SIP/502-08717418", "AMPUSER=502") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/502-08717418", "0?report") in new stack
-- Executing [[email protected]:4] GotoIf("SIP/502-08717418", "0?start") in new stack
-- Executing [[email protected]:5] Set("SIP/502-08717418", "REALCALLERIDNUM=502") in new stack
-- Executing [[email protected]:6] NoOp("SIP/502-08717418", "REALCALLERIDNUM is 502") in new stack
-- Executing [[email protected]:7] Set("SIP/502-08717418", "AMPUSER=502") in new stack
-- Executing [[email protected]:8] Set("SIP/502-08717418", "AMPUSERCIDNAME=Test") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/502-08717418", "0?report") in new stack
-- Executing [[email protected]:10] Set("SIP/502-08717418", "AMPUSERCID=1xxx-5642024") in new stack
-- Executing [[email protected]:11] Set("SIP/502-08717418", "CALLERID(all)="Test" <1xxx-5642024>") in new stack
-- Executing [[email protected]:12] Set("SIP/502-08717418", "REALCALLERIDNUM=502") in new stack
-- Executing [[email protected]:13] NoOp("SIP/502-08717418", "TTL:  ARG1: SKIPTTL") in new stack
-- Executing [[email protected]:14] GotoIf("SIP/502-08717418", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [[email protected]:23] NoOp("SIP/502-08717418", "Using CallerID "Test" <1xxx-5642024>") in new stack
-- Executing [[email protected]:11] Macro("SIP/502-08717418", "record-enable|1xxx-5642024|OUT") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/502-08717418", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [[email protected]:4] AGI("SIP/502-08717418", "recordingcheck|20080109-132924|1199903364.197") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20080109-132924|1199903364.197: No AMPUSER db entry for 1xxx-5642024. Not recording
– AGI Script recordingcheck completed, returning 0
– Executing [[email protected]:5] NoOp(“SIP/502-08717418”, “No recording needed”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/502-08717418”, “0?skipoutcid”) in new stack
– Executing [[email protected]:13] Set(“SIP/502-08717418”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:14] Macro(“SIP/502-08717418”, “outbound-callerid|1”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/502-08717418”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing [[email protected]:3] NoOp(“SIP/502-08717418”, “REALCALLERIDNUM is 502”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/502-08717418”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [[email protected]:9] Set(“SIP/502-08717418”, “USEROUTCID=”) in new stack
– Executing [[email protected]:10] Set(“SIP/502-08717418”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:11] Set(“SIP/502-08717418”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/502-08717418”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing [[email protected]:16] GotoIf(“SIP/502-08717418”, “1?usercid”) in new stack
– Goto (macro-outbound-callerid,s,18)
– Executing [[email protected]:18] GotoIf(“SIP/502-08717418”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing [[email protected]:22] NoOp(“SIP/502-08717418”, “CallerID set to “Test” <1xxx-5642024>”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/502-08717418”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,17)
– Executing [[email protected]:17] AGI(“SIP/502-08717418”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
– AGI Script fixlocalprefix completed, returning 0
– Executing [[email protected]:18] Set(“SIP/502-08717418”, “OUTNUM=18xx-5646436”) in new stack
– Executing [[email protected]:19] Set(“SIP/502-08717418”, “custom=ZAP/g0”) in new stack
– Executing [[email protected]:20] GotoIf(“SIP/502-08717418”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,22)
– Executing [[email protected]:22] Macro(“SIP/502-08717418”, “dialout-trunk-predial-hook”) in new stack
– Executing [[email protected]:23] GotoIf(“SIP/502-08717418”, “0?bypass|1”) in new stack
– Executing [[email protected]:24] GotoIf(“SIP/502-08717418”, “0?customtrunk”) in new stack
– Executing [[email protected]:25] Dial(“SIP/502-08717418”, “ZAP/g0/18xx-5646436|300|”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:26] Goto(“SIP/502-08717418”, “s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] GotoIf(“SIP/502-08717418”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
– Executing [[email protected]:3] NoOp(“SIP/502-08717418”, “TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks”) in new stack
– Executing [[email protected]:2] Macro(“SIP/502-08717418”, “outisbusy|”) in new stack
– Executing [[email protected]:1] Playback(“SIP/502-08717418”, “all-circuits-busy-now|noanswer”) in new stack
– <SIP/502-08717418> Playing ‘all-circuits-busy-now’ (language ‘en’)
– Executing [[email protected]:2] Playback(“SIP/502-08717418”, “pls-try-call-later|noanswer”) in new stack
– <SIP/502-08717418> Playing ‘pls-try-call-later’ (language ‘en’)
– Executing [[email protected]:3] Macro(“SIP/502-08717418”, “hangupcall”) in new stack
– Executing [[email protected]:1] ResetCDR(“SIP/502-08717418”, “w”) in new stack
– Executing [[email protected]:2] NoCDR(“SIP/502-08717418”, “”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/502-08717418”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [[email protected]:6] GotoIf(“SIP/502-08717418”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/502-08717418”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [[email protected]:11] Hangup(“SIP/502-08717418”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/502-08717418’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/502-08717418’ in macro ‘outisbusy’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/502-08717418’
– Executing [[email protected]:1] Macro(“SIP/502-0879a2e8”, “dialout-trunk|2|18003733411||”) in new stack
– Executing [[email protected]:1] Set(“SIP/502-0879a2e8”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:2] Set(“SIP/502-0879a2e8”, “DIAL_NUMBER=18003733411”) in new stack
– Executing [[email protected]:3] Set(“SIP/502-0879a2e8”, “ROUTE_PASSWD=”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/502-0879a2e8”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,6)
– Executing [[email protected]:6] GotoIf(“SIP/502-0879a2e8”, “0?disabletrunk|1”) in new stack
– Executing [[email protected]:7] Set(“SIP/502-0879a2e8”, “_NODEST=”) in new stack
– Executing [[email protected]:8] Set(“SIP/502-0879a2e8”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:9] Set(“SIP/502-0879a2e8”, “GROUP()=OUT_2”) in new stack
– Executing [[email protected]:10] Macro(“SIP/502-0879a2e8”, “user-callerid|SKIPTTL”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/502-0879a2e8”, “user-callerid: device 502”) in new stack
– Executing [[email protected]:2] Set(“SIP/502-0879a2e8”, “AMPUSER=502”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/502-0879a2e8”, “0?report”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/502-0879a2e8”, “0?start”) in new stack
– Executing [[email protected]:5] Set(“SIP/502-0879a2e8”, “REALCALLERIDNUM=502”) in new stack
– Executing [[email protected]:6] NoOp(“SIP/502-0879a2e8”, “REALCALLERIDNUM is 502”) in new stack
– Executing [[email protected]:7] Set(“SIP/502-0879a2e8”, “AMPUSER=502”) in new stack
– Executing [[email protected]:8] Set(“SIP/502-0879a2e8”, “AMPUSERCIDNAME=Test”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/502-0879a2e8”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“SIP/502-0879a2e8”, “AMPUSERCID=1xxx-5642024”) in new stack
– Executing [[email protected]:11] Set(“SIP/502-0879a2e8”, “CALLERID(all)=“Test” <1xxx-5642024>”) in new stack
– Executing [[email protected]:12] Set(“SIP/502-0879a2e8”, “REALCALLERIDNUM=502”) in new stack
– Executing [[email protected]:13] NoOp(“SIP/502-0879a2e8”, “TTL: ARG1: SKIPTTL”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/502-0879a2e8”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [[email protected]:23] NoOp(“SIP/502-0879a2e8”, “Using CallerID “Test” <1xxx-5642024>”) in new stack
– Executing [[email protected]:11] Macro(“SIP/502-0879a2e8”, “record-enable|1xxx-5642024|OUT”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/502-0879a2e8”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] AGI(“SIP/502-0879a2e8”, “recordingcheck|20080109-133004|1199903404.198”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080109-133004|1199903404.198: No AMPUSER db entry for 1xxx-5642024. Not recording
– AGI Script recordingcheck completed, returning 0
– Executing [[email protected]:5] NoOp(“SIP/502-0879a2e8”, “No recording needed”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/502-0879a2e8”, “0?skipoutcid”) in new stack
– Executing [[email protected]:13] Set(“SIP/502-0879a2e8”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:14] Macro(“SIP/502-0879a2e8”, “outbound-callerid|2”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/502-0879a2e8”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing [s[email protected]:3] NoOp(“SIP/502-0879a2e8”, “REALCALLERIDNUM is 502”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/502-0879a2e8”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [[email protected]:9] Set(“SIP/502-0879a2e8”, “USEROUTCID=”) in new stack
– Executing [[email protected]:10] Set(“SIP/502-0879a2e8”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:11] Set(“SIP/502-0879a2e8”, “TRUNKOUTCID=1xxx-5642024”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/502-0879a2e8”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing [[email protected]:16] GotoIf(“SIP/502-0879a2e8”, “0?usercid”) in new stack
– Executing [[email protected]:17] Set(“SIP/502-0879a2e8”, “CALLERID(all)=1xxx-5642024”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/502-0879a2e8”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing [[email protected]:22] NoOp(“SIP/502-0879a2e8”, “CallerID set to “” <1xxx-5642024>”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/502-0879a2e8”, “0?nomax”) in new stack
– Executing [[email protected]:16] GotoIf(“SIP/502-0879a2e8”, “0?chanfull”) in new stack
– Executing [[email protected]:17] AGI(“SIP/502-0879a2e8”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
– AGI Script fixlocalprefix completed, returning 0
– Executing [[email protected]:18] Set(“SIP/502-0879a2e8”, “OUTNUM=18003733411”) in new stack
– Executing [[email protected]:19] Set(“SIP/502-0879a2e8”, “custom=IAX2/The New Maage Inc”) in new stack
– Executing [[email protected]:20] GotoIf(“SIP/502-0879a2e8”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,22)
– Executing [[email protected]:22] Macro(“SIP/502-0879a2e8”, “dialout-trunk-predial-hook”) in new stack
– Executing [[email protected]:23] GotoIf(“SIP/502-0879a2e8”, “0?bypass|1”) in new stack
– Executing [[email protected]:24] GotoIf(“SIP/502-0879a2e8”, “0?customtrunk”) in new stack
– Executing [[email protected]:25] Dial(“SIP/502-0879a2e8”, “IAX2/The New Maage Inc/18003733411|300|”) in new stack
– Called The New Maage Inc/18003733411
– Call accepted by 209.132.204.50 (format alaw)
– Format for call is alaw
– Hungup ‘IAX2/The New Maage Inc-1’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:26] Goto(“SIP/502-0879a2e8”, “s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] GotoIf(“SIP/502-0879a2e8”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
– Executing [[email protected]:3] NoOp(“SIP/502-0879a2e8”, “TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks”) in new stack
– Executing [[email protected]:2] Macro(“SIP/502-0879a2e8”, “outisbusy|”) in new stack
– Executing [[email protected]:1] Playback(“SIP/502-0879a2e8”, “all-circuits-busy-now|noanswer”) in new stack
– <SIP/502-0879a2e8> Playing ‘all-circuits-busy-now’ (language ‘en’)
– Executing [[email protected]:2] Playback(“SIP/502-0879a2e8”, “pls-try-call-later|noanswer”) in new stack
– <SIP/502-0879a2e8> Playing ‘pls-try-call-later’ (language ‘en’)
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/502-0879a2e8’ in macro ‘outisbusy’
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/502-0879a2e8’

what formats are you allowing on your iax setup?

Reason I’m asking is that the call is attempting to connect using alaw. See the output 15 lines from the bottom. So if the connection can’t support the format or it is not allowed you wil get that message.

I am allowing all format including g729. I am able to call local pSTN numbers without any problem