Blob Blame Raw
From d9702cbf17ef80f0e8cf76cc94a7c3c4d62ce668 Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Wed, 10 Aug 2011 17:05:22 +0400
Subject: [PATCH 2/2] Permit unknown options to be passed to rtpproxy

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
 modules/rtpproxy/rtpproxy.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c
index 2ccc26e..6bd9b53 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -3026,8 +3026,11 @@ force_rtp_proxy_body(struct sip_msg* msg, struct force_rtpp_args *args)
 			break;
 
 		default:
-			LM_ERR("unknown option `%c'\n", *cp);
-			FORCE_RTP_PROXY_RET (-1);
+			LM_WARN("unknown option `%c'\n", *cp);
+			if (append_opts(&opts, *cp) == -1) {
+				LM_ERR("out of pkg memory\n");
+				FORCE_RTP_PROXY_RET (-1);
+			}
 		}
 	}
 
-- 
1.7.10