Dial failed for some reason with DIALSTATUS =CHANUNAVAIL

I am getting this strange error when trying to dial out to an 0844 number where the call fails with a channel unavailable error. The system dials our correctly on all other numbers.

The log shows:

Executing [08448002400@from-internal:1] Macro(“SIP/115-00001467”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/115-00001467”, “AMPUSER=115”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/115-00001467”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/115-00001467”, “1?Set(REALCALLERIDNUM=115)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/115-00001467”, “AMPUSER=115”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/115-00001467”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/115-00001467”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/115-00001467”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“SIP/115-00001467”, “CALLERID(number)=115”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/115-00001467”, “CALLERID(name)=Dean Wheatley”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/115-00001467”, “CHANNEL(language)=en”) in new stack
– Executing [08448002400@from-internal:2] Set(“SIP/115-00001467”, “MOHCLASS=default”) in new stack
– Executing [08448002400@from-internal:3] ExecIf(“SIP/115-00001467”, “0?Set(TRUNKCIDOVERRIDE=1159793377)”) in new stack
– Executing [08448002400@from-internal:4] Set(“SIP/115-00001467”, “_NODEST=”) in new stack
– Executing [08448002400@from-internal:5] Gosub(“SIP/115-00001467”, “sub-record-check,s,1(out,08448002400,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/115-00001467”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“SIP/115-00001467”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“SIP/115-00001467”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“SIP/115-00001467”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“SIP/115-00001467”, “0?out,1”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/115-00001467”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/115-00001467”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/115-00001467”, “NOW=1372319405”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/115-00001467”, “__DAY=27”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/115-00001467”, “__MONTH=06”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/115-00001467”, “__YEAR=2013”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/115-00001467”, “__TIMESTR=20130627-085005”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/115-00001467”, “__FROMEXTEN=115”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/115-00001467”, “__CALLFILENAME=out-08448002400-115-20130627-085005-1372319405.15607”) in new stack
– Executing [s@sub-record-check:21] Goto(“SIP/115-00001467”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/115-00001467”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/115-00001467”, “0?record,1(exten,08448002400,115)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/115-00001467”, “”) in new stack
– Executing [08448002400@from-internal:6] Macro(“SIP/115-00001467”, “dialout-trunk,2,08448002400,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/115-00001467”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/115-00001467”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/115-00001467”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/115-00001467”, “DIAL_NUMBER=08448002400”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/115-00001467”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/115-00001467”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/115-00001467”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/115-00001467”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/115-00001467”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/115-00001467”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/115-00001467”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/115-00001467”, “0?Set(REALCALLERIDNUM=115)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/115-00001467”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/115-00001467”, “USEROUTCID=1159793382”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/115-00001467”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/115-00001467”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/115-00001467”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/115-00001467”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/115-00001467”, “1?Set(CALLERID(all)=1159793382)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/115-00001467”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/115-00001467”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/115-00001467”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/115-00001467”, “OUTNUM=08448002400”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/115-00001467”, “custom=DAHDI/g1”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/115-00001467”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/115-00001467”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/115-00001467”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/115-00001467”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/115-00001467”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/115-00001467”, “0?Set(CONNECTEDLINE(num,i)=08448002400)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/115-00001467”, “0?Set(CONNECTEDLINE(name,i)=CID:1159793382)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/115-00001467”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/115-00001467”, “DAHDI/g1/08448002400,300,”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called DAHDI/g1/08448002400
– DAHDI/i1/08448002400-61b is proceeding passing it to SIP/115-00001467
– Span 1: Channel 0/4 got hangup request, cause 127
– Hungup ‘DAHDI/i1/08448002400-61b’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/115-00001467”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 127”) in new stack
– Executing [s@macro-dialout-trunk:24] Goto(“SIP/115-00001467”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/115-00001467”, “RC=127”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/115-00001467”, “127,1”) in new stack
– Goto (macro-dialout-trunk,127,1)
– Executing [127@macro-dialout-trunk:1] Goto(“SIP/115-00001467”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] GotoIf(“SIP/115-00001467”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [continue@macro-dialout-trunk:3] NoOp(“SIP/115-00001467”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 127 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:4] Set(“SIP/115-00001467”, “CALLERID(number)=115”) in new stack
– Executing [08448002400@from-internal:7] Macro(“SIP/115-00001467”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/115-00001467”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/115-00001467”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/115-00001467”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“SIP/115-00001467”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/115-00001467> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)

We have 4 outbound routes, one for any number starting with 00. which goes through our American SIP channel, then numbers starting with 0033., 0035. and a host of other international codes for allowing dial to specific countries which goes through our ISDN line, we then have a blank “catch the rest of the world” which uses anything starting with 00. and pushes it to a dead trunk (used to limit outbound international access), then finally anything starting with 0. goes out via our ISDN line (we are in the UK). So when dialling 0844 xxxxxxxx it should be routed through outbound route 4 and onto our ISDN trunk. Any thoughts as to what may be causing a failure on these numbers?

drac

Executing [07779xxxxxx@from-internal:1] Macro(“SIP/115-0000148b”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/115-0000148b”, “AMPUSER=115”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/115-0000148b”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/115-0000148b”, “1?Set(REALCALLERIDNUM=115)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/115-0000148b”, “AMPUSER=115”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/115-0000148b”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/115-0000148b”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/115-0000148b”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“SIP/115-0000148b”, “CALLERID(number)=115”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/115-0000148b”, “CALLERID(name)=Dean Wheatley”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/115-0000148b”, “CHANNEL(language)=en”) in new stack
– Executing [07779xxxxxx@from-internal:2] Set(“SIP/115-0000148b”, “MOHCLASS=default”) in new stack
– Executing [07779xxxxxx@from-internal:3] ExecIf(“SIP/115-0000148b”, “0?Set(TRUNKCIDOVERRIDE=1159xxxxxx)”) in new stack
– Executing [07779xxxxxx@from-internal:4] Set(“SIP/115-0000148b”, “_NODEST=”) in new stack
– Executing [07779xxxxxx@from-internal:5] Gosub(“SIP/115-0000148b”, “sub-record-check,s,1(out,07779xxxxxx,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/115-0000148b”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“SIP/115-0000148b”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“SIP/115-0000148b”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“SIP/115-0000148b”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“SIP/115-0000148b”, “0?out,1”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/115-0000148b”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/115-0000148b”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/115-0000148b”, “NOW=1372320740”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/115-0000148b”, “__DAY=27”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/115-0000148b”, “__MONTH=06”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/115-0000148b”, “__YEAR=2013”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/115-0000148b”, “__TIMESTR=20130627-091220”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/115-0000148b”, “__FROMEXTEN=115”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/115-0000148b”, “__CALLFILENAME=out-07779xxxxxx-115-20130627-091220-1372320740.15797”) in new stack
– Executing [s@sub-record-check:21] Goto(“SIP/115-0000148b”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/115-0000148b”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/115-0000148b”, “0?record,1(exten,077792xxxxxx,115)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/115-0000148b”, “”) in new stack
– Executing [07779xxxxxx@from-internal:6] Macro(“SIP/115-0000148b”, “dialout-trunk,2,07779xxxxxx,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/115-0000148b”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/115-0000148b”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/115-0000148b”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/115-0000148b”, “DIAL_NUMBER=07779xxxxxx”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/115-0000148b”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/115-0000148b”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/115-0000148b”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/115-0000148b”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/115-0000148b”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/115-0000148b”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/115-0000148b”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/115-0000148b”, “0?Set(REALCALLERIDNUM=115)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/115-0000148b”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/115-0000148b”, “USEROUTCID=1159xxxxxx”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/115-0000148b”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/115-0000148b”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/115-0000148b”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/115-0000148b”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/115-0000148b”, “1?Set(CALLERID(all)=1159xxxxxx)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/115-0000148b”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/115-0000148b”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/115-0000148b”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/115-0000148b”, “OUTNUM=07779xxxxxx”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/115-0000148b”, “custom=DAHDI/g1”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/115-0000148b”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/115-0000148b”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/115-0000148b”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/115-0000148b”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/115-0000148b”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/115-0000148b”, “0?Set(CONNECTEDLINE(num,i)=07779xxxxxx)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/115-0000148b”, “0?Set(CONNECTEDLINE(name,i)=CID:1159xxxxxx)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/115-0000148b”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/115-0000148b”, “DAHDI/g1/07779xxxxxx,300,”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called DAHDI/g1/07779xxxxxx
– DAHDI/i1/07779xxxxxx-627 is proceeding passing it to SIP/115-0000148b
– DAHDI/i1/07779xxxxxx-627 is ringing
– DAHDI/i1/07779xxxxxx-627 is making progress passing it to SIP/115-0000148b
– Hungup ‘DAHDI/i1/07779xxxxxx-627’
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/115-0000148b’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 07779xxxxxx, 6) exited non-zero on ‘SIP/115-0000148b’
– Executing [h@from-internal:1] Hangup(“SIP/115-0000148b”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/115-0000148b’

I struggle to see a great deal of difference between the two…

drac