summaryrefslogtreecommitdiff
path: root/main/rtp.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-10-05 18:57:26 +0000
committerJoshua Colp <jcolp@digium.com>2007-10-05 18:57:26 +0000
commit5b3347c715d5b479531618d9a0bb7d96c233da0c (patch)
tree0cea8b4d768255d12987cff1e1d09a1afaff4e27 /main/rtp.c
parentfeb8f6f38bb127a80a5f1e4da8bb34fa4f1fe7c7 (diff)
Merged revisions 84818 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84818 | file | 2007-10-05 15:55:36 -0300 (Fri, 05 Oct 2007) | 4 lines Update the remembered RTP peer information when putting an endpoint on hold or taking it off hold so that the RTP stack does not initiate a needless reinvite. (closes issue #10868) Reported by: mavince ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 201c522e4..3831baaef 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -3339,6 +3339,11 @@ static enum ast_bridge_result bridge_native_loop(struct ast_channel *c0, struct
else
pr0->set_rtp_peer(c0, p1, vp1, tp1, codec1, ast_test_flag(p1, FLAG_NAT_ACTIVE));
}
+ /* Update local address information */
+ ast_rtp_get_peer(p0, &t0);
+ memcpy(&ac0, &t0, sizeof(ac0));
+ ast_rtp_get_peer(p1, &t1);
+ memcpy(&ac1, &t1, sizeof(ac1));
ast_indicate_data(other, fr->subclass, fr->data, fr->datalen);
ast_frfree(fr);
} else {