From 6b367532897d3bb2c64e3da342cb8bc868a6d139 Mon Sep 17 00:00:00 2001 From: file Date: Mon, 18 May 2009 13:53:39 +0000 Subject: 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 --- main/rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main') 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); -- cgit v1.2.3