Posted: Mon Mar 21, 2005 12:24 pm Post subject: [Asterisk-Users] Flash hook & hangup problem
Hello.
I'm trying to transfer calls from an analog phone (Zap/1, TDM400P card) to
some other terminal connected to my Asterisk PBX. If I make a flash hook
pressing the phone hangup button quickly it works as expected, I get a new
dialtone and the other side is put on hold. But I would like to use my
phone's "R" key instead for some different reasons (it's quite easier to use
in some of the phones we have here), and I can't get it to work properly.
The problem: with the default values in zapata.conf, when I press the "R"
key nothing happens. The other side of the communication hears a "click" but
everything stays the same.
I have found by trial and error (and in some docs after that) that the
standard flash hook timing for my country (Spain) phone systems is 100ms.
So, if I put rxflash=100 in Zap/1 channel configuration in zapata.conf
(actually any value below 104) Asterisk detects when I press the "R" key,
but instead of interpreting it as a flash hook it's interpreted as if I
hung up the phone. I get a new dialtone but the other side gets
disconnected, not on hold. It's just the same as if I hung up the phone for,
say, 10 seconds.
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.
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:
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.
Posted: Mon Mar 21, 2005 10:39 pm Post subject: [Asterisk-Users] Flash hook & hangup problem
Quote:
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...
Quote:
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...
Quote:
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.
Posted: Tue Mar 22, 2005 4:17 am Post subject: [Asterisk-Users] Flash hook & hangup problem
On Tue, 2005-03-22 at 10:49 +0100, Fernando Sanchez wrote:
Quote:
> You should have found my post with the exact same problem over a year
> ago...
Oops. I think I found it but I thought "this patch is some months old; the
problem must have been solved in upstream versions long ago". My fault.
No worries, it is one of the (thankfully) small number of patches I need
to apply every single time I upgrade asterisk. Painful, but generally
not much else changes near these things, so I don't need to deal with
patch rejects very often.
Quote:
> Apply this patch:
> diff -ur zaptel/zaptel.h zaptel.mine/zaptel.h
I had to lower it from 200 to 50 instead of from 150 to 75, but it works
fine now. Thanks a lot for your help.
I'm not sure I understand why you had a value of 200 when (I'm pretty
sure) current stable cvs has a value of 150. I also don't see why you
would need to reduce the value to 50, but I suppose it probably doesn't
matter anyway....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum