]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Update codec information as well as address when doing hold reinvites.
authorJoshua Colp <jcolp@digium.com>
Mon, 8 Oct 2007 15:37:46 +0000 (15:37 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 8 Oct 2007 15:37:46 +0000 (15:37 +0000)
(issue #10868)
Reported by: mavince

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85023 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index 636d59e54d45e44b9b63c84a5cea1599f46666b2..0ef22fcb20c312201291e7420c249f1da774d767 100644 (file)
@@ -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 {