diff --git a/modules/rtpproxy/README b/modules/rtpproxy/README index 5528e84fdc..eaf0ab2729 100644 --- a/modules/rtpproxy/README +++ b/modules/rtpproxy/README @@ -499,14 +499,14 @@ sock_pvar]]]]) 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(); ... } @@ -514,7 +514,7 @@ route { onreply_route[1] { ... - if (has_sdp()) + if (has_body("application/sdp")) rtpproxy_answer(); ... } @@ -522,7 +522,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 f0811412be..9a4dc35ee4 100644 --- a/modules/rtpproxy/doc/rtpproxy_admin.xml +++ b/modules/rtpproxy/doc/rtpproxy_admin.xml @@ -602,14 +602,14 @@ if (is_method("INVITE") && has_totag()) { 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(); ... } @@ -617,7 +617,7 @@ route { onreply_route[1] { ... - if (has_sdp()) + if (has_body("application/sdp")) rtpproxy_answer(); ... } @@ -625,7 +625,7 @@ onreply_route[1] onreply_route[2] { ... - if (has_sdp()) + if (has_body("application/sdp")) rtpproxy_offer(); ... }