]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't queue frames to channels that have no means to process them.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 30 Dec 2009 21:57:10 +0000 (21:57 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 30 Dec 2009 21:57:10 +0000 (21:57 +0000)
(closes issue #15609)
 Reported by: aragon
 Patches:
       20091230__issue16521__1.4__chan_local_only.diff.txt uploaded by tilghman (license 14)
 Tested by: aragon

Review: https://reviewboard.asterisk.org/r/452/

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

channels/chan_local.c

index b39aeccd1e06a05193900877d5a66e1e65b2c430..cb317b9b2f5477adcbc3e3b27e0879a6af11e421 100644 (file)
@@ -212,7 +212,9 @@ static int local_queue_frame(struct local_pvt *p, int isoutbound, struct ast_fra
        }
 
        if (other) {
-               ast_queue_frame(other, f);
+               if (other->pbx || other->_bridge) {
+                       ast_queue_frame(other, f);
+               } /* else the frame won't go anywhere */
                ast_channel_unlock(other);
        }