Zt hook failed: Device or resource busy --- help!


#1

I’ve got an asterisk system setup and running on Debain Sarge Stable and I’ve got a bug in the system or maybe it’s a Telco problem, either way it’s driving me batty. This system was put in place by another admin and I’m trying to debug it.

I’m running asterisk 1.2.4 and Zaptel 1.2.4

The system has 2 X101P’s and one TDM400p

Here’s my configuration files.

more zaptel.conf

Zaptel Configuration File

fxoks=3-6
fxsks=1-2

loadzone = us

defaultzone=us

#more zapata.conf

;
; Zapata telephony interface
;
; Configuration file

[channels]

; Default context
;
context=default
; A variety of timing parameters can be specified as well
; Including:
; prewink: Pre-wink time
; preflash: Pre-flash time
; wink: Wink time
; flash: Flash time
; start: Start time
; rxwink: Receiver wink time
; rxflash: Receiver flashtime
; debounce: Debounce timing
;
;rxwink=300 ; Atlas seems to use long (250ms) winks
;
;
; Whether or not to use caller ID
;
usecallerid=yes
;
; Whether or not to hide outgoing caller ID (Override with *67 or 82)
;
hidecallerid=no
;
; Whether or not to enable call waiting on FXO lines
;
callwaiting=no
;
; Support Caller
ID on Call Waiting
;
callwaitingcallerid=yes
;
; Support three-way calling
;
threewaycalling=yes
;
; Support flash-hook call transfer (requires three way calling)
;
transfer=yes
;
; Support call forward variable
;
cancallforward=yes
;
; Whether or not to support Call Return (*69)
;
callreturn=yes

echocancel=yes
echocancelwhenbridged=yes
rxgain=1.5
txgain=1.5
;
immediate=no
busydetect=no
callprogress=yes
signalling=fxo_ks
group=1
context=inside
;
callerid=“xxxxxxxxxxxx” <333>
mailbox=333@common
channel => 3

callerid=“xxxxxxxxxxx” <341>
mailbox=341@common
channel => 4

callerid=“yyyyyyyyyyy” <394>
mailbox=
channel => 5

callerid="mmmmmmmmmmm"
mailbox=
channel => 6

;; our two incoming phone lines
;immediate=yes
context=guest
signalling=fxs_ks
group=2
callerid=asreceived
mailbox=
channel => 1
channel => 2

##################################

The system works fine for incoming calls and internal calls and voicemail, but making calls to an outside line are having what appear to be timing issues and I have no idea what to look for.

look at /var/log/asterisk/messages


Mar 21 10:20:00 NOTICE[18233] chan_zap.c: Got event 18 (Ring Begin)…
Mar 21 11:03:28 NOTICE[18285] chan_zap.c: Got event 18 (Ring Begin)…
Mar 21 11:41:44 NOTICE[18332] chan_zap.c: Got event 18 (Ring Begin)…
Mar 21 14:05:12 WARNING[26112] chan_zap.c: zt hook failed: Device or resource busy
Mar 21 14:05:52 WARNING[26112] chan_zap.c: zt hook failed: Device or resource busy
Mar 21 14:53:40 WARNING[26112] chan_zap.c: zt hook failed: Device or resource busy
Mar 21 14:54:22 WARNING[26112] chan_zap.c: zt hook failed: Device or resource busy
Mar 21 14:55:07 WARNING[26112] chan_zap.c: zt hook failed: Device or resource busy
Mar 21 15:11:33 NOTICE[18760] chan_zap.c: Got event 18 (Ring Begin)…
Mar 21 15:11:48 NOTICE[18772] cdr.c: CDR simple logging enabled.
Mar 21 15:37:36 NOTICE[18846] cdr.c: CDR simple logging enabled.
Mar 21 16:08:38 WARNING[18865] chan_zap.c: zt hook failed: Device or resource busy
Mar 21 19:01:40 NOTICE[19152] chan_zap.c: Got event 18 (Ring Begin)…
Mar 22 08:34:46 WARNING[18865] chan_zap.c: zt hook failed: Device or resource busy
Mar 22 08:35:32 WARNING[18865] chan_zap.c: zt hook failed: Device or resource busy
Mar 22 10:07:17 WARNING[18865] chan_zap.c: zt hook failed: Device or resource busy
Mar 22 11:55:21 WARNING[18865] chan_zap.c: zt hook failed: Device or resource busy

I see that message alot when people try to get an outside line. This is not every time, and I am assuming that asterisk thinks the line is in use. I have verified that the line is not in fact busy or in use by putting a phone on the phone port of the x101p’s. Anyone got any idea what is going on?

I’m still new to asterisk but I’m trying to learn, so any words of wisdom will be greatly appreciated.