]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
MWI messages included in CID spill was not being properly handled and prevented the...
authorDoug Bailey <dbailey@digium.com>
Fri, 23 Jan 2009 16:35:30 +0000 (16:35 +0000)
committerDoug Bailey <dbailey@digium.com>
Fri, 23 Jan 2009 16:35:30 +0000 (16:35 +0000)
(issue #14313)
Reported by: seandarcy
Tested by: dbailey

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170457 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 631694261b4a8c3fdffa4720a1d01c7af8284256..257baff38d16fef83db5c4174972943932301279 100644 (file)
@@ -7517,16 +7517,16 @@ static void *ss_thread(void *data)
                        /* 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);