[sr-dev] git:3.3: 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:36:41 CEST 2012


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

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 eee5ce0..0453ef9 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -2203,6 +2203,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[9]);
 			STR2IOVEC(oldport, v[11]);




More information about the sr-dev mailing list