Skip to content

Commit

Permalink
Merge pull request #746 from lemenkov/remove_has_sdp
Browse files Browse the repository at this point in the history
rtpproxy: patch: has_sdp() does not exist
(cherry picked from commit 2e59ba9)
  • Loading branch information
bogdan-iancu committed Jan 8, 2016
1 parent 7df8a1a commit 7f933a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions modules/rtpproxy/README
Expand Up @@ -499,30 +499,30 @@ 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();
...
}

onreply_route[1]
{
...
if (has_sdp())
if (has_body("application/sdp"))
rtpproxy_answer();
...
}

onreply_route[2]
{
...
if (has_sdp())
if (has_body("application/sdp"))
rtpproxy_offer();
...
}
Expand Down
8 changes: 4 additions & 4 deletions modules/rtpproxy/doc/rtpproxy_admin.xml
Expand Up @@ -602,30 +602,30 @@ 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();
...
}

onreply_route[1]
{
...
if (has_sdp())
if (has_body("application/sdp"))
rtpproxy_answer();
...
}

onreply_route[2]
{
...
if (has_sdp())
if (has_body("application/sdp"))
rtpproxy_offer();
...
}
Expand Down

0 comments on commit 7f933a5

Please sign in to comment.