[Asterisk-Users] asterisk@home 0.9 zap problems

Dinesh dinesh at imcb.a-star.edu.sg
Thu Apr 21 18:22:17 MST 2005


Hi all,

 

Trying to upgrade to the new version, and all went well.  I am having some
problems with the zaptel config.  

 

When ever I try to dial a pstn number, I get this message.  I did a yum
update and also recompiled the zaptel and asterisk modules in /usr/src.  I
used the same machine as I was using it for asterisk at home 0.6.  

 

genzaptelconf           autoconfig Zaptel cards

 

I used as per what the asterisk at home manual told me.  I see all the modules
for zaptel loaded

 

[root at owl root]# dmesg | grep Zap

Zapata Telephony Interface Registered on major 196

 

[root at owl root]# lsmod | grep zap

zaptel                178560   4  [ztdummy wcfxs]

 

but still getting this annonying error saying all circuits are busy.  I also
get this error when I do a zaptel restart.

 

[root at owl zaptel]# /etc/init.d/zaptel restart

Unloading zaptel hardware drivers: wcfxs ztdummy 

Removing zaptel module:  zaptel: Device or resource busy

[FAILED]

Loading zaptel framework:  [  OK  ]

Waiting for zap to come online ...OK

Loading zaptel hardware modules: wcfxs ztdummy 

Running ztcfg:  [  OK  ]

 

Is this normal?

 

I have tested the phone socket on the port 1 its working fine.  I also tried
to play around with the trunks g1 g0..etc, doesn't work.

 

My Zapata.conf

 

;

; Zapata telephony interface

;

; Configuration file

 

[trunkgroups]

 

[channels]

 

language=en

context=from-pstn

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=1

callgroup=1

pickupgroup=1

immediate=no

 

;faxdetect=both

faxdetect=incoming

;faxdetect=outgoing

;faxdetect=no

 

[root at owl root]# asterisk -r

Asterisk 1.0.7, Copyright (C) 1999-2004 Digium.

Written by Mark Spencer <markster at digium.com>

=========================================================================

Connected to Asterisk 1.0.7 currently running on owl (pid = 1707)

Verbosity is at least 3

    -- Executing Macro("SIP/3001-e13a", "dialout-trunk|1|65869804") in new
stack

    -- Executing GotoIf("SIP/3001-e13a", "1?4") in new stack

    -- Goto (macro-dialout-trunk,s,4)

    -- Executing GotoIf("SIP/3001-e13a", "0?6") in new stack

    -- Executing SetCallerID("SIP/3001-e13a", "64789451") in new stack

    -- Executing SetGroup("SIP/3001-e13a", "OUT_1") in new stack

    -- Executing CheckGroup("SIP/3001-e13a", "1") in new stack

    -- Executing SetVar("SIP/3001-e13a", "DIAL_NUMBER=65869804") in new
stack

    -- Executing SetVar("SIP/3001-e13a", "DIAL_TRUNK=1") in new stack

    -- Executing AGI("SIP/3001-e13a", "fixlocalprefix") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix

    -- AGI Script fixlocalprefix completed, returning 0

    -- Executing Dial("SIP/3001-e13a", "ZAP/1/65869804") in new stack

  == Everyone is busy/congested at this time

    -- Executing NoOp("SIP/3001-e13a", "dial failed") in new stack

    -- Executing Macro("SIP/3001-e13a", "outisbusy") in new stack

    -- Executing Playback("SIP/3001-e13a", "allison7/all-circuits-busy-now")
in new stack

    -- Playing 'allison7/all-circuits-busy-now' (language 'en')

    -- Executing Playback("SIP/3001-e13a", "allison7/pls-try-call-later") in
new stack

    -- Playing 'allison7/pls-try-call-later' (language 'en')

    -- Executing Macro("SIP/3001-e13a", "hangupcall") in new stack

    -- Executing ResetCDR("SIP/3001-e13a", "w") in new stack

    -- Executing NoCDR("SIP/3001-e13a", "") in new stack

    -- Executing Wait("SIP/3001-e13a", "5") in new stack

  == Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/3001-e13a' in macro 'hangupcall'

  == Spawn extension (macro-outisbusy, s, 3) exited non-zero on
'SIP/3001-e13a' in macro 'outisbusy'

  == Spawn extension (from-internal, 65869804, 2) exited non-zero on
'SIP/3001-e13a'

    -- Executing Macro("SIP/3001-e13a", "hangupcall") in new stack

    -- Executing ResetCDR("SIP/3001-e13a", "w") in new stack

    -- Executing NoCDR("SIP/3001-e13a", "") in new stack

    -- Executing Wait("SIP/3001-e13a", "5") in new stack

  == Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/3001-e13a' in macro 'hangupcall'

  == Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/3001-e13a'

 

[root at owl zaptel]# genzaptelconf -s

 

 

STOPPING ASTERISK

 

Disconnected from Asterisk server

Asterisk Stopped

 

STOPPING FOP SERVER

FOP Server Stopped

 

SETTING FILE PERMISSIONS

Permissions OK

 

STARTING ASTERISK

Asterisk Started

 

STARTING FOP SERVER

 

** SIP/3001 in position 2

** IAX2/3004 in position 3

FOP Server Started

   Chan Extension  Context         Language   MusicOnHold         

 pseudo            from-pstn       en                             

Verbosity is at least 3

 

[root at owl zaptel]# cat /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 TDM400P REV E/F Board 1" 

fxsks=1

fxsks=2

fxsks=3

fxsks=4

 

# Span 2: WCTDM/1 "Wildcard TDM400P REV E/F Board 2" 

fxoks=5

fxoks=6

fxoks=7

fxoks=8

 

# Span 3: ZTDUMMY/1 "ZTDUMMY/1 1" 

 

# Global data

 

loadzone        = us

defaultzone     = us

 

 

Thanks in advance,

 

Dinesh Birlasekaran
Network Engineer,
ComIT, Institute of Molecular and Cell Biology
61 Biopolis Drive, Singapore 138673
HP : 92962676 DID : 65869804 Fax : 67791117 Email :
dinesh at imcb.a-star.edu.sg
WWW: www.imcb.a-star.edu.sg 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050421/326506f0/attachment.htm


More information about the asterisk-users mailing list