diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-12 14:18:57 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-12 14:18:57 +0000 |
commit | 19ad1a10baf36fcf9c88f24476d5c80d050be161 (patch) | |
tree | 4a5897a845ebbe4a162cefd257c3870cbb1a5c82 | |
parent | bbe710c4ca99ed5757225fc1b2add02409954099 (diff) |
Bring RTP back to Asterisk at the end of a native bridge no matter what.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68921 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | rtp.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1768,6 +1768,12 @@ enum ast_bridge_result ast_rtp_bridge(struct ast_channel *c0, struct ast_channel cs[1] = cs[2]; } + + 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_FAILED; } |