[sr-dev] git:master: modules_k/rtpproxy: Removing nathelper restriction for forcing

Ovidiu Sas osas at voipembedded.com
Wed Sep 22 18:48:15 CEST 2010


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

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Wed Sep 22 12:57:50 2010 -0400

modules_k/rtpproxy: Removing nathelper restriction for forcing
                    RTP packets only for INVITE type SIP requests.

 - in dialog requests like UPDATE are valid SIP request that can update the SDP.

---

 modules_k/rtpproxy/rtpproxy.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/modules_k/rtpproxy/rtpproxy.c b/modules_k/rtpproxy/rtpproxy.c
index daee003..3680099 100644
--- a/modules_k/rtpproxy/rtpproxy.c
+++ b/modules_k/rtpproxy/rtpproxy.c
@@ -1690,11 +1690,6 @@ rtpproxy_offer1_f(struct sip_msg *msg, char *str1, char *str2)
 static int
 rtpproxy_offer2_f(struct sip_msg *msg, char *param1, char *param2)
 {
-
-	if (msg->first_line.type == SIP_REQUEST)
-		if (msg->first_line.u.request.method_value != METHOD_INVITE)
-			return -1;
-
 	return force_rtp_proxy(msg, param1, param2, 1);
 }
 
@@ -1725,8 +1720,7 @@ force_rtp_proxy2_f(struct sip_msg *msg, char *param1, char *param2)
 {
 	int offer;
 
-	if (msg->first_line.type == SIP_REQUEST &&
-	    msg->first_line.u.request.method_value == METHOD_INVITE) {
+	if (msg->first_line.type == SIP_REQUEST) {
 		offer = 1;
 	} else if (msg->first_line.type == SIP_REPLY) {
 		offer = 0;




More information about the sr-dev mailing list