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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Mar 4 11:12:05 MST 2006


Author: markster
Date: Sat Mar  4 12:12:02 2006
New Revision: 11817

URL: http://svn.digium.com/view/asterisk?rev=11817&view=rev
Log:
Fix some whitespace issues

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=11817&r1=11816&r2=11817&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Sat Mar  4 12:12:02 2006
@@ -4299,24 +4299,24 @@
 			}
 			break;
 		case ZT_EVENT_POLARITY:
-                        /*
-                         * If we get a Polarity Switch event, check to see
-                         * if we should change the polarity state and
-                         * mark the channel as UP or if this is an indication
-                         * of remote end disconnect.
-                         */
-                        if (p->polarity == POLARITY_IDLE) {
-                                p->polarity = POLARITY_REV;
-                                if (p->answeronpolarityswitch &&
-                                    ((ast->_state == AST_STATE_DIALING) ||
-                                     (ast->_state == AST_STATE_RINGING))) {
-                                        ast_log(LOG_DEBUG, "Answering on polarity switch!\n");
-                                        ast_setstate(p->owner, AST_STATE_UP);
+			/*
+			 * If we get a Polarity Switch event, check to see
+			 * if we should change the polarity state and
+			 * mark the channel as UP or if this is an indication
+			 * of remote end disconnect.
+			 */
+			if (p->polarity == POLARITY_IDLE) {
+				p->polarity = POLARITY_REV;
+				if (p->answeronpolarityswitch &&
+				    ((ast->_state == AST_STATE_DIALING) ||
+					 (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);
+				} else
+					ast_log(LOG_DEBUG, "Ignore switch to REVERSED Polarity on channel %d, state %d\n", p->channel, ast->_state);
 			} 
 			/* Removed else statement from here as it was preventing hangups from ever happening*/
 			/* Added AST_STATE_RING in if statement below to deal with calling party hangups that take place when ringing */



More information about the asterisk-commits mailing list