<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>After a lot of trouble the help of this cool lib (openr2) and the help of my friend Emiliano Agustin from Argentina, I finally set up trixbox 2.6.2.3 with MFC/R2 support in Mexico.<br><br>But I'm getting these error when ever I try to make a call ("X" is the number of the channel):<br><br>chan_dahdi.c: Chan "X" - Trying to dial out in a non-idle channel (cas=0x0C) <br><br>This happens on every call that try to reach "ZAP/g0/"<br><br>Console Log:<br> -- Executing [s@macro-dialout-trunk:19] Dial("SIP/6925-09f898f8", "ZAP/g0/0453221357287|300|") in new stack<br> -- Couldn't call g0/0453221357287<br> -- Hungup 'Zap/5-1'<br> == Everyone is busy/congested at this time (0:0/0/0)<br> -- Executing [s@macro-dialout-trunk:20] Goto("SIP/6925-09f898f8", "s-CHANUNAVAIL|1") in new stack<br> -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)<br> -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/6925-09f898f8", "1?noreport") in new stack<br> -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)<br> -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/6925-09f898f8", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack<br><br>The error for this is:<br>[Nov 27 20:35:47] ERROR[3999] chan_dahdi.c: Chan 5 - Trying to dial out in a non-idle channel (cas=0x0C)<br><br>------------------------------------------------------------------------------------------------------------------<br>cat /proc/zaptel/1<br>Span 1: WPE1/0 "wanpipe1 card 0" (MASTER) HDB3/ <br><br> 1 WPE1/0/1 CAS (In use) <br> 2 WPE1/0/2 CAS (In use) <br> 3 WPE1/0/3 CAS (In use) <br> 4 WPE1/0/4 CAS (In use) <br> 5 WPE1/0/5 CAS (In use) ... till 31 (except for signaling that is 16 WPE1/0/16 HDLCFCS )<br><br>------------------------------------------------------------------------------------------------------------------<br>cat /etc/zaptel.conf<br>#Sangoma A104 port 1 [slot:4 bus:20 span:1] <wanpipe1><br>span=1,1,0,cas,hdb3<br>cas=1-15:1101<br>cas=17-31:1101<br>dchan=16<br><br>------------------------------------------------------------------------------------------------------------------<br>cat /etc/asterisk/zapata.conf<br>[trunkgroups]<br><br>[channels]<br><br>language=es<br>;<br>; Whether or not to do distinctive ring detection on FXO lines<br>;<br>;usedistinctiveringdetection=yes<br><br>usecallerid=yes<br>callerid=asreceived<br>hidecallerid=no<br>callwaiting=yes<br>usecallingpres=yes<br>callwaitingcallerid=yes<br>threewaycalling=yes<br>transfer=yes<br>canpark=yes<br>cancallforward=yes<br>callreturn=yes<br>echocancel=yes<br>echocancelwhenbridged=no<br><br>busydetect=yes <br>busycount=4 <br><br>;Sangoma A104 port 1 [slot:4 bus:20 span:1] <wanpipe1><br>context=from-zaptel<br>group=0<br>callgroup=0<br>pickupgroup=0<br>signalling=mfcr2<br>mfcr2_variant=mx<br>mfcr2_get_ani_first=no<br>mfcr2_max_ani=12<br>mfcr2_max_dnis=4<br>mfcr2_category=national_subscriber<br>channel => 1-15,17-31<br><br>------------------------------------------------------------------------------------------------------------------<br>cat /etc/wanpipe/wanpipe1.conf<br>[devices]<br>wanpipe1 = WAN_AFT_TE1, Comment<br><br>[interfaces]<br>w1g1 = wanpipe1, , TDM_VOICE, Comment<br><br>[wanpipe1]<br>CARD_TYPE = AFT<br>S514CPU = A<br>CommPort = PRI<br>AUTO_PCISLOT = NO<br>PCISLOT = 4<br>PCIBUS = 20<br>FE_MEDIA = E1<br>FE_LCODE = HDB3<br>FE_FRAME = NCRC4<br>FE_LINE = 1<br>TE_CLOCK = NORMAL<br>TE_REF_CLOCK = 0<br>TE_SIG_MODE = CAS<br>TE_HIGHIMPEDANCE = NO<br>LBO = 120OH<br>FE_TXTRISTATE = NO<br>MTU = 1500<br>UDPPORT = 9000<br>TTL = 255<br>IGNORE_FRONT_END = NO<br>TDMV_SPAN = 1<br>TDMV_DCHAN = 0<br>TDMV_HW_DTMF = NO<br>TDMV_HW_FAX_DETECT = NO<br><br>[w1g1]<br>ACTIVE_CH = ALL<br>TDMV_HWEC = YES<br><br>------------------------------------------------------------------------------------------------------------------<br><br>I guess I missing somenthing really obvius.. but I just can't find it.<br><br>Thank you for all your help.<br><br>Josue.<br><br>                                            </body>
</html>