aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 13:53:39 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 13:53:39 +0000
commit6b367532897d3bb2c64e3da342cb8bc868a6d139 (patch)
treeb48d72977e29451eaa7760e2a3ebb9504a1fe548 /main
parent9a20a61ebc80d56154e973a98f0d0dabe1f60eb8 (diff)
Fix a bug where the codecs of the called party leg were not properly sent back to the caller call leg when reinvited.
(closes issue #13569) Reported by: bkw918 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@195095 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/rtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c
index de4ab9a2f..4250661d3 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -3019,7 +3019,8 @@ static enum ast_bridge_result bridge_native_loop(struct ast_channel *c0, struct
oldcodec1 = codec1;
}
if ((inaddrcmp(&t0, &ac0)) ||
- (vp0 && inaddrcmp(&vt0, &vac0))) {
+ (vp0 && inaddrcmp(&vt0, &vac0)) ||
+ (codec0 != oldcodec0)) {
if (option_debug > 1) {
ast_log(LOG_DEBUG, "Oooh, '%s' changed end address to %s:%d (format %d)\n",
c0->name, ast_inet_ntoa(t0.sin_addr), ntohs(t0.sin_port), codec0);