From 30610b61ae18888f54ae12b9cef4a95917e969e6 Mon Sep 17 00:00:00 2001 From: matteo Date: Sat, 15 Mar 2003 06:00:16 +0000 Subject: Sat Mar 15 07:00:01 CET 2003 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@645 f38db490-d61c-443f-a65b-d21fe96a405b --- rtp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'rtp.c') diff --git a/rtp.c b/rtp.c index c3cd30171..faa39c741 100755 --- a/rtp.c +++ b/rtp.c @@ -963,8 +963,17 @@ int ast_rtp_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, st } /* That's all we needed */ return 0; - } else + } else { + if ((f->frametype == AST_FRAME_DTMF) || (f->frametype == AST_FRAME_VOICE)) { + /* Forward voice or DTMF frames if they happen upon us */ + if (who == c0) { + ast_write(c1, f); + } else if (who == c1) { + ast_write(c0, f); + } + } ast_frfree(f); + } /* Swap priority not that it's a big deal at this point */ cs[2] = cs[0]; cs[0] = cs[1]; -- cgit v1.2.3