<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<BR>
I have another PBX with a similar Sangoma card, and I copy some settings of the wanpipe1.conf (now are the same except for the PCI slot).<BR>
<BR>
And the output of the command chaged, for worse I guess :(<BR>
<BR>
[trixbox1.localdomain ~]# asterisk -rx "mfcr2 show channels"<BR>Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS<BR> 1 MX 12 4 No No IDLE BLOCK<BR> 2 MX 12 4 No No IDLE BLOCK<BR> 3 MX 12 4 No No IDLE BLOCK<BR>
... so on till 31<BR>
<BR>
What changed:<BR>
TE_CLOCK = <BR>
was NORMAL now is MASTER<BR>
<BR>
TDMV_DCHAN = <BR>
was 0 now is 16<BR><BR>
commented:<BR>
#TDMV_HW_FAX_DETECT = NO<BR>
<BR>added:<BR>
TDMV_ECHO_OFF = NO<BR> <BR>
i guess the problem is the sangoma configuration... as I say I copied this settings from a working PBX, same provider... what may I be missing?<BR>
<BR>
<BR>
<HR id=stopSpelling>
From: neojos@hotmail.com<BR>To: asterisk-r2@lists.digium.com<BR>Date: Fri, 27 Nov 2009 23:23:40 -0600<BR>Subject: Re: [asterisk-r2] chan_dahdi Trying to dial out in a non-idle channel (cas=0x0C)<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
<BR>this output is really weird... Why is it blocking the 15 and 31?<BR> <BR>I Called Telmex (telco) and they sended a guy with a machine that connected to the service, the "thing" emulated a PBX, and it was able to place an receive calls...<BR> <BR>this is the output of the command you kindly asked me to execute:<BR> <BR>[trixbox1.localdomain ~]# asterisk -rx "mfcr2 show channels"<BR>Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS<BR> 1 MX 12 4 No No IDLE 0x0C<BR> 2 MX 12 4 No No IDLE 0x0C<BR> 3 MX 12 4 No No IDLE 0x0C<BR> 4 MX 12 4 No No IDLE 0x0C<BR> 5 MX 12 4 No No IDLE 0x0C<BR> 6 MX 12 4 No No IDLE 0x0C<BR> 7 MX 12 4 No No IDLE 0x0C<BR> 8 MX 12 4 No No IDLE 0x0C<BR> 9 MX 12 4 No No IDLE 0x0C<BR> 10 MX 12 4 No No IDLE 0x0C<BR> 11 MX 12 4 No No IDLE 0x0C<BR> 12 MX 12 4 No No IDLE 0x0C<BR> 13 MX 12 4 No No IDLE 0x0C<BR> 14 MX 12 4 No No IDLE 0x0C<BR> 15 MX 12 4 No No IDLE BLOCK<BR> 17 MX 12 4 No No IDLE 0x0C<BR> 18 MX 12 4 No No IDLE 0x0C<BR> 19 MX 12 4 No No IDLE 0x0C<BR> 20 MX 12 4 No No IDLE 0x0C<BR> 21 MX 12 4 No No IDLE 0x0C<BR> 22 MX 12 4 No No IDLE 0x0C<BR> 23 MX 12 4 No No IDLE 0x0C<BR> 24 MX 12 4 No No IDLE 0x0C<BR> 25 MX 12 4 No No IDLE 0x0C<BR> 26 MX 12 4 No No IDLE 0x0C<BR> 27 MX 12 4 No No IDLE 0x0C<BR> 28 MX 12 4 No No IDLE 0x0C<BR> 29 MX 12 4 No No IDLE 0x0C<BR> 30 MX 12 4 No No IDLE 0x0C<BR> 31 MX 12 4 No No IDLE BLOCK<BR><BR> <BR>
<HR id=ecxstopSpelling>
Date: Fri, 27 Nov 2009 22:00:47 -0500<BR>From: moises.silva@gmail.com<BR>To: asterisk-r2@lists.digium.com<BR>Subject: Re: [asterisk-r2] chan_dahdi Trying to dial out in a non-idle channel (cas=0x0C)<BR><BR>Execute:
<DIV><BR></DIV>
<DIV>mfcr2 show channels<BR><BR></DIV>
<DIV>Both ends must be IDLE. But it seems the other end is BLOCKED. Call your telco to ask them to unblock your line.</DIV>
<DIV><BR>
<DIV class=ecxecxgmail_quote>On Fri, Nov 27, 2009 at 9:56 PM, Josue _ <SPAN dir=ltr><<A href="mailto:neojos@hotmail.com">neojos@hotmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=ecxecxgmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV><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></DIV><BR>_______________________________________________<BR>--Bandwidth and Colocation Provided by <A href="http://www.api-digital.com--/">http://www.api-digital.com--</A><BR><BR>asterisk-r2 mailing list<BR>To UNSUBSCRIBE or update options visit:<BR> <A href="http://lists.digium.com/mailman/listinfo/asterisk-r2">http://lists.digium.com/mailman/listinfo/asterisk-r2</A><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Moises Silva<BR>Software Developer<BR>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<BR>t. 1 905 474 1990 x 128 | e. <A href="mailto:moy@sangoma.com">moy@sangoma.com</A><BR></DIV>                                            </body>
</html>