[asterisk-users] CHANUNAVAIL with a TDM800 card

hin lee hin87 at yahoo.com
Thu Oct 30 13:03:03 CDT 2008


I got this working.  For what it's worth, here's what the issue.  

The channel wasn't getting created under FreePBX via script.  Here's what I needed to do:

1) Run genzaptelconf  to generate the zaptel configs

2) find the channel the port(s) is on.

	cat /proc/zaptel/*
	
3) comment out the unused ports in /etc/zaptel.conf based on step 2 result.

4) put in the available channel in /etc/asterisk/zapata-channels.conf

ie. channel => 1

5) comment out the unused channels in /etc/asterisk/zapata-auto.conf


http://www.freepbx.org/support/documentation/administration-guide/interfacing-to-a-pstn


Hope this will help the next person who may encounter this issue.


--- On Tue, 10/28/08, hin lee <hin87 at yahoo.com> wrote:

> From: hin lee <hin87 at yahoo.com>
> Subject: [asterisk-users] CHANUNAVAIL with a TDM800 card
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
> Date: Tuesday, October 28, 2008, 5:02 PM
> Hi,
> 
> A newbie here trying to learn Asterisk.  I've installed
> PiAF v.1.3(PBX in A Flash) and trying to set up the TDM808E
> card as a test.  For now I only have one analog line.  I
> went into the FreePBX interface and created a ZAP trunk with
> 1 as the Zap Identifier.  
> 
> When I try to call out, I get the error
> "CHANUNAVAIL" and the "All Circuits are
> busy" message.  If I try to call in, Asterisk
> doesn't pick up.  
> 
> What am I doing wrong?? I been at this for days now and I
> don't see where the issue is at!  
> 
> TIA!
> 
> ------------------------------
> Output from Asterisk CLI
> ------------------------------
>     -- Executing [s at macro-dialout-trunk:19]
> Dial("SIP/5134-088a9c90",
> "ZAP/1/7593548|300|") in new stack
>   == Everyone is busy/congested at this time (1:0/0/1)
>     -- Executing [s at macro-dialout-trunk:20]
> Goto("SIP/5134-088a9c90",
> "s-CHANUNAVAIL|1") in new stack
>     -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
>     -- Executing [s-CHANUNAVAIL at macro-dialout-trunk:1]
> GotoIf("SIP/5134-088a9c90",
> "1?noreport") in new stack
>     -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
>     -- Executing [s-CHANUNAVAIL at macro-dialout-trunk:3]
> NoOp("SIP/5134-088a9c90", "TRUNK Dial failed
> due to CHANUNAVAIL (hangupcause: 0) - failing through to
> other trunks") in new stack
>     -- Executing [7593548 at from-internal:5]
> Macro("SIP/5134-088a9c90", "outisbusy|")
> in new stack
>     -- Executing [s at macro-outisbusy:1]
> Playback("SIP/5134-088a9c90",
> "all-circuits-busy-now|noanswer") in new stack
>     -- <SIP/5134-088a9c90> Playing
> 'all-circuits-busy-now' (language 'en')
>   == Spawn extension (macro-outisbusy, s, 1) exited
> non-zero on 'SIP/5134-088a9c90' in macro
> 'outisbusy'
>   == Spawn extension (macro-outisbusy, s, 1) exited
> non-zero on 'SIP/5134-088a9c90'
> 
> 
> --------------------------------------------
> root at pbx:/etc/asterisk $ ztcfg -vvvvv
> --------------------------------------------
> Zaptel Version: 1.4.12.1
> Echo Canceller: MG2
> Configuration
> ======================
> 
> 
> Channel map:
> 
> Channel 01: FXS Kewlstart (Default) (Slaves: 01)
> Channel 02: FXS Kewlstart (Default) (Slaves: 02)
> Channel 03: FXS Kewlstart (Default) (Slaves: 03)
> Channel 04: FXS Kewlstart (Default) (Slaves: 04)
> Channel 05: FXS Kewlstart (Default) (Slaves: 05)
> Channel 06: FXS Kewlstart (Default) (Slaves: 06)
> Channel 07: FXS Kewlstart (Default) (Slaves: 07)
> Channel 08: FXS Kewlstart (Default) (Slaves: 08)
> 
> 8 channels to configure.
> 
> 
> -------------------------------------
> root at pbx:/etc $ cat /proc/zaptel/*
> --------------------------------------
> Span 1: WCTDM/0 "Wildcard TDM800P Board 1"
> (MASTER)
>         IRQ misses: 1
> 
>            1 WCTDM/0/0 FXSKS
>            2 WCTDM/0/1 FXSKS RED
>            3 WCTDM/0/2 FXSKS RED
>            4 WCTDM/0/3 FXSKS RED
>            5 WCTDM/0/4 FXSKS RED
>            6 WCTDM/0/5 FXSKS RED
>            7 WCTDM/0/6 FXSKS RED
>            8 WCTDM/0/7 FXSKS RED
> 
> 
> --------------------------------
> /etc/asterisk/zapata.conf
> ----------------------------
> ;
> ; Zapata telephony interface
> ;
> ; Configuration file
> 
> [trunkgroups]
> 
> [channels]
> 
> language=en
> context=from-zaptel
> signalling=fxs_ks
> rxwink=300              ; Atlas seems to use long (250ms)
> winks
> ;
> ; Whether or not to do distinctive ring detection on FXO
> lines
> ;
> ;usedistinctiveringdetection=yes
> 
> usecallerid=yes
> hidecallerid=no
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=no
> echotraining=800
> rxgain=0.0
> txgain=0.0
> group=0
> callgroup=1
> pickupgroup=1
> immediate=no
> 
> ;faxdetect=both
> faxdetect=incoming
> ;faxdetect=outgoing
> ;faxdetect=no
> 
> ;Include genzaptelconf configs
> #include zapata-channels.conf
> 
> ;Include AMP configs
> #include zapata_additional.conf
> 
> ------------------------
> /etc/zaptel.conf
> ------------------------
> # Autogenerated by /usr/local/sbin/genzaptelconf -- do not
> hand edit
> # Zaptel Configuration File
> #
> # This file is parsed by the Zaptel Configurator, ztcfg
> #
> 
> # It must be in the module loading order
> 
> 
> # Span 1: WCTDM/0 "Wildcard TDM800P Board 1"
> (MASTER)
> fxsks=1
> fxsks=2
> fxsks=3
> fxsks=4
> fxsks=5
> fxsks=6
> fxsks=7
> fxsks=8
> 
> # Global data
> 
> loadzone        = us
> defaultzone     = us
> 
> 
> 
>       
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by
> http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


      



More information about the asterisk-users mailing list