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

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_k/rtpproxy/rtpproxy.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules_k/rtpproxy/rtpproxy.c b/modules_k/rtpproxy/rtpproxy.c
index 494cda0..406397c 100644
--- a/modules_k/rtpproxy/rtpproxy.c
+++ b/modules_k/rtpproxy/rtpproxy.c
@@ -2091,6 +2091,9 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* 
str2, int offer)
                                        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