[Asterisk-Users] Zap channel configuration problem

Rich Adamson radamson at routers.com
Mon Jul 25 09:49:12 MST 2005


> > I would like to use a digum card to call an external number through my 
> > PSTN. I think that I have a problem in the configuration. Asterisk 
> > returns me app_dial.c:764 dial_exec: Unable to create channel of type 'Zap'
> > 
> > I use Fedora core 3.
> > I installed libpri, zaptel and asterisk.
> > I plugged my line on the FXS module (green part).
> > I make modprobe zaptel && modprobe wctdm without error return.
> > 
> > Configuration files :
> > 
> > /etc/zaptel.conf
> > fxsks=1
> 
> fxoks=1
> # ditto for the signalling entry below.
> 
> > loadzone = it
> > defaultzone=it
> > 
> > 
> > /etc/asterisk/zapata.conf
> > [channels]
> > language=en
> > context=from-sip
> > signalling=fxs_ks
> 
> signalling=fxo_ks
> channels=>1
> 
> > 
> > /etc/asterisk/extensions.conf
> > TRUNK=Zap/g2
> > TRUNKMSD=1
> > DIALOUTANALOG=Zap/1
> > 
> > [from-sip]
> > exten => _9.,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
> > exten => _9.,2,Congestion
> > 
> > exten => _0.,1,Dial(${DIALOUTANALOG}/${EXTEN})
> > exten => _0.,2,Congestion
> > 
> > 
> > Anyway, if I dial a number adding 9 or 0, Asterisk returns
> > 
> > -- Executing Dial("SIP/203-3cad", "Zap/1/03208518561") in new stack
> > Jul 25 15:35:06 NOTICE[2971]: app_dial.c:764 dial_exec: Unable to create 
> > channel of type 'Zap'
> >  == Everyone is busy/congested at this time
> >    -- Executing Congestion("SIP/203-3cad", "") in new stack
> >  == Spawn extension (from-sip, 03208518561, 2) exited non-zero on 
> > 'SIP/203-3cad'
> > Jul 25 15:35:06 ERROR[2971]: cdr_csv.c:222 csv_log: Unable to re-open 
> > master file /var/log/asterisk//cdr-csv//Master.csv : No such file or 
> > directory
> 
> As a sanity check:
> 
>   zap show channels
> 
> probably only shows "pseudo" now. You need to see there '1' as well.
> 

Unless I read the OP's words wrong, the above  is totally incorrect.

If you are going to plug a pstn line into the TDM card, the module
needs to be a "red" module (not green). The green modules are for
telephone sets.

Get a red fxo module, set /etc/zaptel.conf to "fxsks=1" (if the red
module is in slot 1, and then work on the zapata.conf statements.





More information about the asterisk-users mailing list