All circuits are busy

Hello,

can someone tell how to solve: “ALL CIRCUITS ARE BUSY” message

this is my asterisk output:

[[email protected] asterisk]# asterisk -r
Asterisk 1.4.24, Copyright © 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 1.4.24 currently running on localhost (pid = 2876)
Verbosity is at least 4
– Executing [[email protected]:1] Macro(“SIP/200-09a22690”, “user-callerid|SKIPTTL|”) in new stack
– Executing [[email protected]:1] Set(“SIP/200-09a22690”, “AMPUSER=200”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/200-09a22690”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/200-09a22690”, “1|Set|REALCALLERIDNUM=200”) in new stack
– Executing [[email protected]:4] Set(“SIP/200-09a22690”, “AMPUSER=200”) in new stack
– Executing [[email protected]:5] Set(“SIP/200-09a22690”, “AMPUSERCIDNAME=200”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/200-09a22690”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/200-09a22690”, “AMPUSERCID=200”) in new stack
– Executing [[email protected]:8] Set(“SIP/200-09a22690”, “CALLERID(all)=“200” <200>”) in new stack
– Executing [[email protected]:9] Set(“SIP/200-09a22690”, “REALCALLERIDNUM=200”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/200-09a22690”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] NoOp(“SIP/200-09a22690”, “Using CallerID “200” <200>”) in new stack
– Executing [[email protected]:2] Set(“SIP/200-09a22690”, “_NODEST=”) in new stack
– Executing [[email protected]:3] Macro(“SIP/200-09a22690”, “record-enable|200|OUT|”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/200-09a22690”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] AGI(“SIP/200-09a22690”, “recordingcheck|20101202-120156|1291284116.23”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20101202-120156|1291284116.23: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [[email protected]:5] MacroExit(“SIP/200-09a22690”, “”) in new stack
– Executing [[email protected]:4] Macro(“SIP/200-09a22690”, “dialout-trunk|1|1800821821||”) in new stack
– Executing [[email protected]:1] Set(“SIP/200-09a22690”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/200-09a22690”, “0?sub-pincheck|s|1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/200-09a22690”, “0?disabletrunk|1”) in new stack
– Executing [[email protected]:4] Set(“SIP/200-09a22690”, “DIAL_NUMBER=1800821821”) in new stack
– Executing [[email protected]:5] Set(“SIP/200-09a22690”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/200-09a22690”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/200-09a22690”, “0?nomax”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/200-09a22690”, “0?chanfull”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/200-09a22690”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/200-09a22690”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/200-09a22690”, “outbound-callerid|1”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/200-09a22690”, “0|SetCallerPres|”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/200-09a22690”, “0|Set|REALCALLERIDNUM=200”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/200-09a22690”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/200-09a22690”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/200-09a22690”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/200-09a22690”, “TRUNKOUTCID=088524022”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/200-09a22690”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/200-09a22690”, “1|Set|CALLERID(all)=088524022”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/200-09a22690”, “1?exit”) in new stack
– Goto (macro-outbound-callerid,s,11)
– Executing [[email protected]:11] MacroExit(“SIP/200-09a22690”, “”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/200-09a22690”, “1|AGI|fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 052NXXXXXX
> fixlocalprefix: Using pattern 052XXXXXXX
> fixlocalprefix: Using pattern 18NNNXXXXXX
> fixlocalprefix: Using pattern 08|XXXXXXX
– AGI Script fixlocalprefix completed, returning 0
– Executing [[email protected]:13] Set(“SIP/200-09a22690”, “OUTNUM=91800821821”) in new stack
– Executing [[email protected]:14] Set(“SIP/200-09a22690”, “custom=DAHDI/g1”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/200-09a22690”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
– Executing [[email protected]:16] Macro(“SIP/200-09a22690”, “dialout-trunk-predial-hook|”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/200-09a22690”, “”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/200-09a22690”, “0?bypass|1”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/200-09a22690”, “0?customtrunk”) in new stack
– Executing [[email protected]:19] Dial(“SIP/200-09a22690”, “DAHDI/g1/91800821821|300|”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:20] Goto(“SIP/200-09a22690”, “s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] GotoIf(“SIP/200-09a22690”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
– Executing [[email protected]:3] NoOp(“SIP/200-09a22690”, “TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks”) in new stack
– Executing [[email protected]:5] Macro(“SIP/200-09a22690”, “outisbusy|”) in new stack
– Executing [[email protected]:1] Playback(“SIP/200-09a22690”, “all-circuits-busy-now|noanswer”) in new stack
– <SIP/200-09a22690> Playing ‘all-circuits-busy-now’ (language ‘en’)
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on ‘SIP/200-09a22690’ in macro ‘outisbusy’
== Spawn extension (from-internal, 91800821821, 5) exited non-zero on ‘SIP/200-09a22690’
– Executing [[email protected]:1] Macro(“SIP/200-09a22690”, “hangupcall”) in new stack
– Executing [[email protected]:1] ResetCDR(“SIP/200-09a22690”, “w”) in new stack
– Executing [[email protected]:2] NoCDR(“SIP/200-09a22690”, “”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/200-09a22690”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [[email protected]l:6] GotoIf(“SIP/200-09a22690”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/200-09a22690”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [[email protected]:11] Hangup(“SIP/200-09a22690”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/200-09a22690’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-09a22690’
localhost
CLI>

You need to fix your trunk, the DAHDI driver is returning “channel unavailable”

Post the output of “dahdi show channels”