[asterisk-commits] branch 1.2 - r8573 /branches/1.2/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 24 13:37:31 MST 2006


Author: mattf
Date: Tue Jan 24 14:37:30 2006
New Revision: 8573

URL: http://svn.digium.com/view/asterisk?rev=8573&view=rev
Log:
Backport fix for #6229, hangup on polarity reversal

Modified:
    branches/1.2/channels/chan_zap.c

Modified: branches/1.2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_zap.c?rev=8573&r1=8572&r2=8573&view=diff
==============================================================================
--- branches/1.2/channels/chan_zap.c (original)
+++ branches/1.2/channels/chan_zap.c Tue Jan 24 14:37:30 2006
@@ -4200,6 +4200,10 @@
                                      (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);
+					}
+					break;
                                 } 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