summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-08 08:04:05 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-08 08:04:05 +0000
commit272eb4db7f97f6899caa64efa649fe1456d41336 (patch)
tree061433ba046daab44e3ee7a1bc09d2fc940b5647 /zaptel.c
parent838f8a00a1cf12e5554905c669690d91a5751312 (diff)
Ringing/battery enhancements and fix detect onhook during debounce when debounce is over.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@349 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zaptel.c b/zaptel.c
index f56981e..b8bab2e 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -4750,6 +4750,9 @@ static inline void __rbs_otimer_expire(struct zt_chan *chan)
case ZT_TXSTATE_DEBOUNCE:
zt_rbs_sethook(chan, ZT_TXSIG_OFFHOOK, ZT_TXSTATE_OFFHOOK, 0);
+ /* See if we've gone back on hook */
+ if (chan->rxhooksig == ZT_RXSIG_ONHOOK)
+ chan->itimerset = chan->itimer = chan->rxflashtime * 8;
wake_up_interruptible(&chan->txstateq);
break;