aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-08 15:37:46 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-08 15:37:46 +0000
commit9abc91502e22aa5d90b3177207b72b3cf8940a63 (patch)
tree332e3c55e77615ac56b056eb6afe985e9ae0f5e6 /main/rtp.c
parente4d3ecbb98d506cd1b3de8deaa1de1219007ca42 (diff)
Update codec information as well as address when doing hold reinvites.
(issue #10868) Reported by: mavince git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85023 f38db490-d61c-443f-a65b-d21fe96a405b
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 636d59e54..0ef22fcb2 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -2949,6 +2949,11 @@ static enum ast_bridge_result bridge_native_loop(struct ast_channel *c0, struct
memcpy(&ac0, &t0, sizeof(ac0));
ast_rtp_get_peer(p1, &t1);
memcpy(&ac1, &t1, sizeof(ac1));
+ /* Update codec information */
+ if (pr0->get_codec)
+ oldcodec0 = codec0 = pr0->get_codec(c0);
+ if (pr1->get_codec)
+ oldcodec1 = codec1 = pr1->get_codec(c1);
ast_indicate_data(other, fr->subclass, fr->data, fr->datalen);
ast_frfree(fr);
} else {