[zaptel-commits] qwell: branch 1.4 r2697 - in /branches/1.4: ./ zaptel-base.c
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Thu Jul 5 13:10:30 CDT 2007
Author: qwell
Date: Thu Jul 5 13:10:29 2007
New Revision: 2697
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2697
Log:
Merged revisions 2696 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r2696 | qwell | 2007-07-05 13:08:53 -0500 (Thu, 05 Jul 2007) | 5 lines
Do not report channels in ZT_STATE_KEWL or ZT_STATE_AFTERKEWL (ie; battery drop) states as available.
This becomes more likely if ZT_KEWLTIME or ZT_AFTERKEWLTIME are set to higher values.
Issue 7612, patch by rbraun.
........
Modified:
branches/1.4/ (props changed)
branches/1.4/zaptel-base.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel-base.c?view=diff&rev=2697&r1=2696&r2=2697
==============================================================================
--- branches/1.4/zaptel-base.c (original)
+++ branches/1.4/zaptel-base.c Thu Jul 5 13:10:29 2007
@@ -2985,12 +2985,14 @@
j = zt_q_sig(chan);
if (j >= 0) { /* if returned with success */
stack.param.rxisoffhook = ((chan->rxsig & (j >> 8)) != (j & 0xff));
- }
- else {
+ } else {
stack.param.rxisoffhook = ((chan->rxhooksig != ZT_RXSIG_ONHOOK) &&
(chan->rxhooksig != ZT_RXSIG_INITIAL));
}
- } else stack.param.rxisoffhook = 0;
+ } else if ((chan->txstate == ZT_TXSTATE_KEWL) || (chan->txstate == ZT_TXSTATE_AFTERKEWL))
+ stack.param.rxisoffhook = 1;
+ else
+ stack.param.rxisoffhook = 0;
if (chan->span && chan->span->rbsbits && !(chan->sig & ZT_SIG_CLEAR)) {
stack.param.rxbits = chan->rxsig;
stack.param.txbits = chan->txsig;
More information about the zaptel-commits
mailing list