Cian O'Sullivan
2004-Nov-03 08:30 UTC
[Asterisk-Users] zt hook failed: Device or resource busy
Hello, I ordered the Devel lite kit, and installed it. I am just trying to get the FXO port to work, and am having trouble. To load the card I do the following. modprobe wcfxs modprobe wcfxo ztcfg -vv asterisk -vc My /var/log/asterisk/messages show Nov 3 11:03:39 WARNING[3317]: zt hook failed: Device or resource busy Here is my /etc/zaptel.conf fxoks=1 fxsks=4 loadzone=us defaultzone=us Here is my /etc/asterisk/zapata.conf [channels] ; echocancel=yes echocancelwhenbridged=yes relaxdtmf=yes rxgain=0.0 txgain=0.0 immediate=no busydetect=no callprogress=no musiconhold=default usecallerid=yes callerid=asreceived ; context=incoming signalling=fxo_ks channel=1 context=local-access signalling=fxs_ks channel=4 ; When I try to dial outside from a SIP phone I get the following error Nov 3 11:14:12 NOTICE[3337]: Unable to create channel of type 'Zap' When I try to dial in, it appears as if the line is answered, as the rining stops, but ther eis only static, and no indication in the asterisk logs that it has received an event from FXO. I have searched the asterisk mailing list archives and posted questions, but to no avail. Can you provide any insight? Cheers Cian
Cian O'Sullivan
2004-Nov-03 08:37 UTC
[Asterisk-Users] zt hook failed: Device or resource busy
Follow up:
Does the following mean the channel is in use when it says Reserved?
*CLI> show channel Zap/1-1
-- General --
Name: Zap/1-1
Type: Zap
UniqueID: 1099494219.1
Caller ID: (N/A)
Caller ID Name: (N/A)
DNID Digits: (N/A)
State: Rsrvd (1)
Rings: 0
NativeFormat: 68
WriteFormat: 4
ReadFormat: 4
1st File Descriptor: 10
Frames in: 843
Frames out: 0
Time to Hangup: 0
Elapsed Time: 0h0m0s
-- PBX --
Context: incoming
Extension: s
Priority: 1
Call Group: 0
Pickup Group: 0
Application: (N/A)
Data: (None)
Stack: -1
Blocking in: (Not Blocking)
Variables:
CALLTYPE=SPEECH
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Cian
O'Sullivan
Sent: Wednesday, November 03, 2004 11:31 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] zt hook failed: Device or resource busy
Hello,
I ordered the Devel lite kit, and installed it.
I am just trying to get the FXO port to work, and am having trouble.
To load the card I do the following.
modprobe wcfxs
modprobe wcfxo
ztcfg -vv
asterisk -vc
My /var/log/asterisk/messages show
Nov 3 11:03:39 WARNING[3317]: zt hook failed: Device or resource busy
Here is my /etc/zaptel.conf
fxoks=1
fxsks=4
loadzone=us
defaultzone=us
Here is my /etc/asterisk/zapata.conf
[channels]
;
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
immediate=no
busydetect=no
callprogress=no
musiconhold=default
usecallerid=yes
callerid=asreceived
;
context=incoming
signalling=fxo_ks
channel=1
context=local-access
signalling=fxs_ks
channel=4
;
When I try to dial outside from a SIP phone I get the following error
Nov 3 11:14:12 NOTICE[3337]: Unable to create channel of type 'Zap'
When I try to dial in, it appears as if the line is answered, as the
rining stops, but ther eis only static, and no indication in the
asterisk logs that it has received an event from FXO.
I have searched the asterisk mailing list archives and posted questions,
but to no avail.
Can you provide any insight?
Cheers
Cian
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
niles@atheos.net
2004-Nov-03 08:37 UTC
[Asterisk-Users] zt hook failed: Device or resource busy
On Nov 3, 2004, at 10:30 AM, Cian O'Sullivan wrote:> Hello, > > I ordered the Devel lite kit, and installed it. > > I am just trying to get the FXO port to work, and am having trouble. > > To load the card I do the following. > > modprobe wcfxs > modprobe wcfxo > ztcfg -vv > asterisk -vc > > My /var/log/asterisk/messages show >add modprobe zaptel before the other modules.
Eric Wieling
2005-Feb-20 20:32 UTC
[Asterisk-Users] zt hook failed: Device or resource busy
I'm getting the message "zt hook failed: Device or resource busy".
Not all the time, just sometimes.
As you can see it seems to happen when a port is hung up and then
picked back up within 1 second. What /etc/asterisk/zaptel.conf
options might I use to fix this? debounce=? flash=? something else?
Feb 20 18:31:48 VERBOSE[5583]: -- Starting simple switch on
'Zap/65-1'
Feb 20 18:31:53 VERBOSE[5583]: -- Executing Dial("Zap/65-1",
"Zap/G1/5044659580") in new stack
Feb 20 18:31:53 VERBOSE[5583]: -- Called G1/504XXXXXXX
Feb 20 18:31:57 VERBOSE[5583]: -- Zap/27-1 answered Zap/65-1
Feb 20 18:31:57 VERBOSE[5583]: -- Attempting native bridge of
Zap/65-1 and Zap/27-1
Feb 20 18:31:59 VERBOSE[5583]: -- Hungup 'Zap/27-1'
Feb 20 18:31:59 VERBOSE[5583]: == Spawn extension (channel-bank,
5044659580, 1) exited non-zero on 'Zap/65-1'
Feb 20 18:31:59 VERBOSE[5583]: -- Hungup 'Zap/65-1'
Feb 20 18:36:32 VERBOSE[5584]: -- Starting simple switch on
'Zap/65-1'
Feb 20 18:36:44 VERBOSE[5584]: -- Hungup 'Zap/65-1'
Feb 20 18:36:44 WARNING[5070]: zt hook failed: Device or resource busy
Feb 20 18:36:44 VERBOSE[5585]: -- Starting simple switch on
'Zap/65-1'
Feb 20 18:36:56 VERBOSE[5585]: -- Hungup 'Zap/65-1'
Feb 20 18:37:08 VERBOSE[5586]: -- Starting simple switch on
'Zap/65-1'
Feb 20 18:37:14 VERBOSE[5586]: -- Executing Dial("Zap/65-1",
"Zap/G1/5043050452") in new stack
Feb 20 18:37:14 VERBOSE[5586]: -- Called G1/504XXXXXXX
Feb 20 18:37:19 VERBOSE[5586]: -- Zap/27-1 answered Zap/65-1
Feb 20 18:37:19 VERBOSE[5586]: -- Attempting native bridge of
Zap/65-1 and Zap/27-1
Feb 20 18:38:35 VERBOSE[5586]: -- Hungup 'Zap/27-1'