aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-06 13:30:25 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-06 13:30:25 +0000
commit566b73cd51f733bdc27ebaa31deab8a233bfc3fb (patch)
tree1e460c73dd5c2a4fa95fd777a67941dd68ed92f1 /main/rtp.c
parent3c135a8f6e9de5552eb9e68710b2165626091cca (diff)
Merged revisions 67649 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r67649 | file | 2007-06-06 09:28:34 -0400 (Wed, 06 Jun 2007) | 2 lines Reinvite the RTP back to the Asterisk machine when the timeout happens. (issue #9888 reported by gasparz) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67650 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 6515406c3..8eaa0a453 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -2885,8 +2885,13 @@ static enum ast_bridge_result bridge_native_loop(struct ast_channel *c0, struct
/* Wait for frame to come in on the channels */
if (!(who = ast_waitfor_n(cs, 2, &timeoutms))) {
- if (!timeoutms)
+ if (!timeoutms) {
+ if (pr0->set_rtp_peer(c0, NULL, NULL, 0, 0))
+ ast_log(LOG_WARNING, "Channel '%s' failed to break RTP bridge\n", c0->name);
+ if (pr1->set_rtp_peer(c1, NULL, NULL, 0, 0))
+ ast_log(LOG_WARNING, "Channel '%s' failed to break RTP bridge\n", c1->name);
return AST_BRIDGE_RETRY;
+ }
if (option_debug)
ast_log(LOG_DEBUG, "Ooh, empty read...\n");
if (ast_check_hangup(c0) || ast_check_hangup(c1))