Module: sip-router Branch: master Commit: 15f5c9f2f7323c5192a7eb550cc7e7c53b20782a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=15f5c9f2...
Author: Carsten Bock carsten@ng-voice.com Committer: Carsten Bock carsten@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 6cecc0f..9a0fd14 100644 --- a/modules/rtpproxy/rtpproxy.c +++ b/modules/rtpproxy/rtpproxy.c @@ -2257,6 +2257,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]);