]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Suppress warning message when using DAHDITransfer or DAHDIHangup.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 12 Aug 2011 18:58:40 +0000 (18:58 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 12 Aug 2011 18:58:40 +0000 (18:58 +0000)
* The fake event should only be processed by the channel that currently
owns the private and not the associated call waiting or 3-way channel.

JIRA AST-620
JIRA SWP-3616

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

channels/chan_dahdi.c

index 7c9ff1eba73620637856aad488b491c17a61e80f..8f62cadcbebe39d496f11ad52d65a4ce0041998c 100644 (file)
@@ -8927,8 +8927,11 @@ static struct ast_frame *dahdi_read(struct ast_channel *ast)
                return &p->subs[idx].f;
        }
 
-       /* If we have a fake_event, fake an exception to handle it */
-       if (p->fake_event) {
+       /*
+        * If we have a fake_event, fake an exception to handle it only
+        * if this channel owns the private.
+        */
+       if (p->fake_event && p->owner == ast) {
                if (analog_lib_handles(p->sig, p->radio, p->oprmode)) {
                        struct analog_pvt *analog_p = p->sig_pvt;