From a10b7fe02aa913e3f2e3cf7a69845cde59ece72d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 21 Nov 2013 15:41:35 -0500 Subject: [PATCH] fix handling of multipart sip/sdp --- debian/patches/sipwise/rtproxy-ng.patch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/patches/sipwise/rtproxy-ng.patch b/debian/patches/sipwise/rtproxy-ng.patch index 167bdfd7b..ee751c95c 100644 --- a/debian/patches/sipwise/rtproxy-ng.patch +++ b/debian/patches/sipwise/rtproxy-ng.patch @@ -4950,7 +4950,7 @@ +#endif --- /dev/null +++ b/modules/rtpproxy-ng/rtpproxy_funcs.c -@@ -0,0 +1,430 @@ +@@ -0,0 +1,434 @@ +/* + * $Id$ + * @@ -5210,6 +5210,10 @@ + } /* end of while */ + if(c==1) + { ++ if (rest < p2 && *rest == '\r') rest++; ++ if (rest < p2 && *rest == '\n') rest++; ++ if (rest < p2 && p2[-1] == '\n') p2--; ++ if (rest < p2 && p2[-1] == '\r') p2--; + body->s = rest; + body->len = p2-rest; + goto done;