I want to stop writing has_sdp() in script, maybe this patch
eventually helps.
--
Mikko
diff --git a/modules/rtpproxy-ng/doc/rtpproxy_admin.xml b/modules/rtpproxy-ng/doc/rtpproxy_admin.xml
index 9ad60c3..18c389b 100644
--- a/modules/rtpproxy-ng/doc/rtpproxy_admin.xml
+++ b/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();
...
}
diff --git a/modules/rtpproxy/doc/rtpproxy_admin.xml b/modules/rtpproxy/doc/rtpproxy_admin.xml
index 8f968ea..7a60c17 100644
--- a/modules/rtpproxy/doc/rtpproxy_admin.xml
+++ b/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();
...
}
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev