[asterisk-commits] dbailey: trunk r170457 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 23 10:35:31 CST 2009


Author: dbailey
Date: Fri Jan 23 10:35:30 2009
New Revision: 170457

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170457
Log:
MWI messages included in CID spill was not being properly handled and prevented the call from being processed
(issue #14313)
Reported by: seandarcy
Tested by: dbailey

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=170457&r1=170456&r2=170457
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Fri Jan 23 10:35:30 2009
@@ -7517,16 +7517,16 @@
 			/* If generated using Ring Pulse Alert, then ring has been answered as a call and needs to be hungup */
 			if (p->mwimonitor_rpas) {
 				ast_hangup(chan);
-			}
-			return NULL;
+				return NULL;
+			}
 		} else if (flags & CID_NOMSGWAITING) {
 			ast_log(LOG_NOTICE, "MWI: Channel %d no message waiting!\n", p->channel);
 			notify_message(p->mailbox, 0);
 			/* If generated using Ring Pulse Alert, then ring has been answered as a call and needs to be hungup */
 			if (p->mwimonitor_rpas) {
 				ast_hangup(chan);
-			}
-			return NULL;
+				return NULL;
+			}
 		}
 
 		ast_setstate(chan, AST_STATE_RING);




More information about the asterisk-commits mailing list