Sfoglia il codice sorgente

rtpproxy(-ng): patch: has_sdp() does not exist

Mikko Lehto 12 anni fa
parent
commit
aa15067b8a

+ 4 - 4
modules/rtpproxy-ng/README

@@ -427,14 +427,14 @@ rtpproxy_offer();
 route {
 ...
     if (is_method("INVITE")) {
-        if (has_sdp()) {
+        if (has_body("application/sdp")) {
             if (rtpproxy_offer())
                 t_on_reply("1");
         } else {
             t_on_reply("2");
         }
     }
-    if (is_method("ACK") && has_sdp())
+    if (is_method("ACK") && has_body("application/sdp"))
         rtpproxy_answer();
 ...
 }
@@ -442,7 +442,7 @@ route {
 onreply_route[1]
 {
 ...
-    if (has_sdp())
+    if (has_body("application/sdp"))
         rtpproxy_answer();
 ...
 }
@@ -450,7 +450,7 @@ onreply_route[1]
 onreply_route[2]
 {
 ...
-    if (has_sdp())
+    if (has_body("application/sdp"))
         rtpproxy_offer();
 ...
 }

+ 4 - 4
modules/rtpproxy-ng/doc/rtpproxy_admin.xml

@@ -438,14 +438,14 @@ rtpproxy_offer();
 route {
 ...
     if (is_method("INVITE")) {
-        if (has_sdp()) {
+        if (has_body("application/sdp")) {
             if (rtpproxy_offer())
                 t_on_reply("1");
         } else {
             t_on_reply("2");
         }
     }
-    if (is_method("ACK") && has_sdp())
+    if (is_method("ACK") && has_body("application/sdp"))
         rtpproxy_answer();
 ...
 }
@@ -453,7 +453,7 @@ route {
 onreply_route[1]
 {
 ...
-    if (has_sdp())
+    if (has_body("application/sdp"))
         rtpproxy_answer();
 ...
 }
@@ -461,7 +461,7 @@ onreply_route[1]
 onreply_route[2]
 {
 ...
-    if (has_sdp())
+    if (has_body("application/sdp"))
         rtpproxy_offer();
 ...
 }

+ 4 - 4
modules/rtpproxy/README

@@ -511,14 +511,14 @@ rtpproxy_offer();
 route {
 ...
     if (is_method("INVITE")) {
-        if (has_sdp()) {
+        if (has_body("application/sdp")) {
             if (rtpproxy_offer())
                 t_on_reply("1");
         } else {
             t_on_reply("2");
         }
     }
-    if (is_method("ACK") && has_sdp())
+    if (is_method("ACK") && has_body("application/sdp"))
         rtpproxy_answer();
 ...
 }
@@ -526,7 +526,7 @@ route {
 onreply_route[1]
 {
 ...
-    if (has_sdp())
+    if (has_body("application/sdp"))
         rtpproxy_answer();
 ...
 }
@@ -534,7 +534,7 @@ onreply_route[1]
 onreply_route[2]
 {
 ...
-    if (has_sdp())
+    if (has_body("application/sdp"))
         rtpproxy_offer();
 ...
 }

+ 4 - 4
modules/rtpproxy/doc/rtpproxy_admin.xml

@@ -494,14 +494,14 @@ rtpproxy_offer();
 route {
 ...
     if (is_method("INVITE")) {
-        if (has_sdp()) {
+        if (has_body("application/sdp")) {
             if (rtpproxy_offer())
                 t_on_reply("1");
         } else {
             t_on_reply("2");
         }
     }
-    if (is_method("ACK") && has_sdp())
+    if (is_method("ACK") && has_body("application/sdp"))
         rtpproxy_answer();
 ...
 }
@@ -509,7 +509,7 @@ route {
 onreply_route[1]
 {
 ...
-    if (has_sdp())
+    if (has_body("application/sdp"))
         rtpproxy_answer();
 ...
 }
@@ -517,7 +517,7 @@ onreply_route[1]
 onreply_route[2]
 {
 ...
-    if (has_sdp())
+    if (has_body("application/sdp"))
         rtpproxy_offer();
 ...
 }