[sr-dev] git:3.2: b/f: In case of IPv6 Option in the RTP-Command, the pointers and the length need to be updated.

admin at sip-router.org admin at sip-router.org
Mon Sep 3 21:39:04 CEST 2012


Module: sip-router
Branch: 3.2
Commit: 4f2f1e2d4ff0a9cecf8f8a05ee8f5ef7e597d46c
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4f2f1e2d4ff0a9cecf8f8a05ee8f5ef7e597d46c

Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
Date:   Mon Sep  3 21:31:58 2012 +0200

b/f: In case of IPv6 Option in the RTP-Command, the pointers and the length need to be updated.

---

 modules/rtpproxy/rtpproxy.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c
index ba66e54..d48cd78 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -2150,6 +2150,9 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc
 					LM_ERR("out of pkg memory\n");
 					FORCE_RTP_PROXY_RET (-1);
 				}
+				/* We need to update the pointers and the length here, it has changed. */
+				v[1].iov_base = opts.s.s;
+				v[1].iov_len = opts.oidx;
 			}
 			STR2IOVEC(newip, v[7]);
 			STR2IOVEC(oldport, v[9]);




More information about the sr-dev mailing list