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 <[email protected]>
Committer: Carsten Bock <[email protected]>
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]);


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to