[Asterisk-Users] Flash hook & hangup problem

Adam Goryachev mailinglists at websitemanagers.com.au
Mon Mar 21 23:39:25 MST 2005


> All values for rxflash above 104 cause de "R" key presses to be ignored, and
> below 104 it's the same as if I hung up the phone. I think I must increase
> the hang up detection time value (?) somewhere so that 100ms hang ups are
> actually interpreted as flash hooks, but I haven't been able to find out how
> to do it.

You should have found my post with the exact same problem over a year
ago...

> I have tried with 3 different analog phones and it happens the same
> thing with all of them. Last thing: when rxflash is <= 104 and I press "R"
> so that the call is hung up, I'm getting the following message in the logs:

Yep, same thing for me...

> WARNING[26002]: chan_zap.c:1418 zt_set_hook: zt hook failed: Device or resource busy
> 
> Can anyone help me with this, please? Thanks a lot.

Apply this patch:
diff -ur zaptel/zaptel.h zaptel.mine/zaptel.h
--- zaptel/zaptel.h     Tue Sep 28 05:50:03 2004
+++ zaptel.mine/zaptel.h        Fri Mar 11 13:29:00 2005
@@ -849,7 +849,7 @@
 #define        ZT_DEFAULT_PULSEAFTERTIME 750   /* 750ms between dial
pulse digits */

 #define        ZT_MINPULSETIME (15 * 8)        /* 15 ms minimum */
-#define        ZT_MAXPULSETIME (150 * 8)       /* 150 ms maximum */
+#define        ZT_MAXPULSETIME (75 * 8)        /* 75 ms maximum */
 #define        ZT_PULSETIMEOUT ((ZT_MAXPULSETIME / 8) + 50)

 #define ZT_RINGTRAILER (50 * 8)        /* Don't consider a ring "over"
until it's been gone at least this


Watch out for the line wraps, might be best to apply it manually....

Then make clean, make install, and rmmod/insmod your kernel modules. It
has worked fine for me ever since.

Regards,
Adam


 
Adam Goryachev
Website Managers
Ph:  +61 2 8304 0000                        adam at websitemanagers.com.au
Fax: +61 2 9345 4396                        www.websitemanagers.com.au




More information about the asterisk-users mailing list