[asterisk-r2] chan_dahdi Trying to dial out in a non-idle channel (cas=0x0C)
Josue _
neojos at hotmail.com
Fri Nov 27 23:54:51 CST 2009
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).
And the output of the command chaged, for worse I guess :(
[trixbox1.localdomain ~]# asterisk -rx "mfcr2 show channels"
Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS
1 MX 12 4 No No IDLE BLOCK
2 MX 12 4 No No IDLE BLOCK
3 MX 12 4 No No IDLE BLOCK
... so on till 31
What changed:
TE_CLOCK =
was NORMAL now is MASTER
TDMV_DCHAN =
was 0 now is 16
commented:
#TDMV_HW_FAX_DETECT = NO
added:
TDMV_ECHO_OFF = NO
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?
From: neojos at hotmail.com
To: asterisk-r2 at lists.digium.com
Date: Fri, 27 Nov 2009 23:23:40 -0600
Subject: Re: [asterisk-r2] chan_dahdi Trying to dial out in a non-idle channel (cas=0x0C)
this output is really weird... Why is it blocking the 15 and 31?
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...
this is the output of the command you kindly asked me to execute:
[trixbox1.localdomain ~]# asterisk -rx "mfcr2 show channels"
Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS
1 MX 12 4 No No IDLE 0x0C
2 MX 12 4 No No IDLE 0x0C
3 MX 12 4 No No IDLE 0x0C
4 MX 12 4 No No IDLE 0x0C
5 MX 12 4 No No IDLE 0x0C
6 MX 12 4 No No IDLE 0x0C
7 MX 12 4 No No IDLE 0x0C
8 MX 12 4 No No IDLE 0x0C
9 MX 12 4 No No IDLE 0x0C
10 MX 12 4 No No IDLE 0x0C
11 MX 12 4 No No IDLE 0x0C
12 MX 12 4 No No IDLE 0x0C
13 MX 12 4 No No IDLE 0x0C
14 MX 12 4 No No IDLE 0x0C
15 MX 12 4 No No IDLE BLOCK
17 MX 12 4 No No IDLE 0x0C
18 MX 12 4 No No IDLE 0x0C
19 MX 12 4 No No IDLE 0x0C
20 MX 12 4 No No IDLE 0x0C
21 MX 12 4 No No IDLE 0x0C
22 MX 12 4 No No IDLE 0x0C
23 MX 12 4 No No IDLE 0x0C
24 MX 12 4 No No IDLE 0x0C
25 MX 12 4 No No IDLE 0x0C
26 MX 12 4 No No IDLE 0x0C
27 MX 12 4 No No IDLE 0x0C
28 MX 12 4 No No IDLE 0x0C
29 MX 12 4 No No IDLE 0x0C
30 MX 12 4 No No IDLE 0x0C
31 MX 12 4 No No IDLE BLOCK
Date: Fri, 27 Nov 2009 22:00:47 -0500
From: moises.silva at gmail.com
To: asterisk-r2 at lists.digium.com
Subject: Re: [asterisk-r2] chan_dahdi Trying to dial out in a non-idle channel (cas=0x0C)
Execute:
mfcr2 show channels
Both ends must be IDLE. But it seems the other end is BLOCKED. Call your telco to ask them to unblock your line.
On Fri, Nov 27, 2009 at 9:56 PM, Josue _ <neojos at hotmail.com> wrote:
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.
But I'm getting these error when ever I try to make a call ("X" is the number of the channel):
chan_dahdi.c: Chan "X" - Trying to dial out in a non-idle channel (cas=0x0C)
This happens on every call that try to reach "ZAP/g0/"
Console Log:
-- Executing [s at macro-dialout-trunk:19] Dial("SIP/6925-09f898f8", "ZAP/g0/0453221357287|300|") in new stack
-- Couldn't call g0/0453221357287
-- Hungup 'Zap/5-1'
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s at macro-dialout-trunk:20] Goto("SIP/6925-09f898f8", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL at macro-dialout-trunk:1] GotoIf("SIP/6925-09f898f8", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL at macro-dialout-trunk:3] NoOp("SIP/6925-09f898f8", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
The error for this is:
[Nov 27 20:35:47] ERROR[3999] chan_dahdi.c: Chan 5 - Trying to dial out in a non-idle channel (cas=0x0C)
------------------------------------------------------------------------------------------------------------------
cat /proc/zaptel/1
Span 1: WPE1/0 "wanpipe1 card 0" (MASTER) HDB3/
1 WPE1/0/1 CAS (In use)
2 WPE1/0/2 CAS (In use)
3 WPE1/0/3 CAS (In use)
4 WPE1/0/4 CAS (In use)
5 WPE1/0/5 CAS (In use) ... till 31 (except for signaling that is 16 WPE1/0/16 HDLCFCS )
------------------------------------------------------------------------------------------------------------------
cat /etc/zaptel.conf
#Sangoma A104 port 1 [slot:4 bus:20 span:1] <wanpipe1>
span=1,1,0,cas,hdb3
cas=1-15:1101
cas=17-31:1101
dchan=16
------------------------------------------------------------------------------------------------------------------
cat /etc/asterisk/zapata.conf
[trunkgroups]
[channels]
language=es
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
usecallerid=yes
callerid=asreceived
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
busydetect=yes
busycount=4
;Sangoma A104 port 1 [slot:4 bus:20 span:1] <wanpipe1>
context=from-zaptel
group=0
callgroup=0
pickupgroup=0
signalling=mfcr2
mfcr2_variant=mx
mfcr2_get_ani_first=no
mfcr2_max_ani=12
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
channel => 1-15,17-31
------------------------------------------------------------------------------------------------------------------
cat /etc/wanpipe/wanpipe1.conf
[devices]
wanpipe1 = WAN_AFT_TE1, Comment
[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment
[wanpipe1]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 4
PCIBUS = 20
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = NCRC4
FE_LINE = 1
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0
TE_SIG_MODE = CAS
TE_HIGHIMPEDANCE = NO
LBO = 120OH
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1
TDMV_DCHAN = 0
TDMV_HW_DTMF = NO
TDMV_HW_FAX_DETECT = NO
[w1g1]
ACTIVE_CH = ALL
TDMV_HWEC = YES
------------------------------------------------------------------------------------------------------------------
I guess I missing somenthing really obvius.. but I just can't find it.
Thank you for all your help.
Josue.
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-r2 mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-r2
--
Moises Silva
Software Developer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada
t. 1 905 474 1990 x 128 | e. moy at sangoma.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-r2/attachments/20091127/3d819bd5/attachment-0001.htm
More information about the asterisk-r2
mailing list