]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Pass data as well for hold/unhold/vidupdate frames. (issue #8840 reported by mdu113)
authorJoshua Colp <jcolp@digium.com>
Thu, 18 Jan 2007 00:18:44 +0000 (00:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 18 Jan 2007 00:18:44 +0000 (00:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51211 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index 7cce2b3ad0e63e9c7d6b539e56bd546cb0a2fe7c..9b4431d06f25aed85d98e0da1ec8c5636c0a68af 100644 (file)
@@ -2864,7 +2864,7 @@ static enum ast_bridge_result bridge_native_loop(struct ast_channel *c0, struct
                        if ((fr->subclass == AST_CONTROL_HOLD) ||
                            (fr->subclass == AST_CONTROL_UNHOLD) ||
                            (fr->subclass == AST_CONTROL_VIDUPDATE)) {
-                               ast_indicate(other, fr->subclass);
+                               ast_indicate_data(other, fr->subclass, fr->data, fr->datalen);
                                ast_frfree(fr);
                        } else {
                                *fo = fr;
@@ -3072,7 +3072,7 @@ static enum ast_bridge_result bridge_p2p_loop(struct ast_channel *c0, struct ast
                                        p0_callback = p2p_callback_enable(c0, p0, &p0_fds[0], &p0_iod[0]);
                                        p1_callback = p2p_callback_enable(c1, p1, &p1_fds[0], &p1_iod[0]);
                                }
-                               ast_indicate(other, fr->subclass);
+                               ast_indicate_data(other, fr->subclass, fr->data, fr->datalen);
                                ast_frfree(fr);
                        } else {
                                *fo = fr;