[asterisk-commits] trunk - r8155 /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 17 16:13:43 MST 2006


Author: mattf
Date: Tue Jan 17 17:13:42 2006
New Revision: 8155

URL: http://svn.digium.com/view/asterisk?rev=8155&view=rev
Log:
Fix answeronpolarityswitch and hanguponpolarityswitch when both are yes (#6229)

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=8155&r1=8154&r2=8155&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Tue Jan 17 17:13:42 2006
@@ -4268,6 +4268,9 @@
                                      (ast->_state == AST_STATE_RINGING))) {
                                         ast_log(LOG_DEBUG, "Answering on polarity switch!\n");
                                         ast_setstate(p->owner, AST_STATE_UP);
+					if (p->hanguponpolarityswitch) {
+						gettimeofday(&p->polaritydelaytv, NULL);
+					}
                                 } else
                                         ast_log(LOG_DEBUG, "Ignore switch to REVERSED Polarity on channel %d, state %d\n", p->channel, ast->_state);
 			} 



More information about the asterisk-commits mailing list