Skip to content

Commit

Permalink
Merge pull request #2341 from l2dy/residential
Browse files Browse the repository at this point in the history
opensips_residential.m4: Limit rtpproxy function calls to messages with an SDP body
  • Loading branch information
sobomax committed Dec 16, 2020
2 parents 6f62e23 + 0a7d741 commit b528652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions menuconfig/configs/opensips_residential.m4
Expand Up @@ -454,7 +454,7 @@ route[relay] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {

ifelse(USE_NAT,`yes',`if (isflagset("NAT")) {
ifelse(USE_NAT,`yes',`if (isflagset("NAT") && has_body("application/sdp")) {
rtpproxy_offer("ro");
}',`')

Expand Down Expand Up @@ -501,7 +501,7 @@ branch_route[per_branch_ops] {
onreply_route[handle_nat] {
ifelse(USE_NAT,`yes',`if (nat_uac_test(1))
fix_nated_contact();
if ( isflagset("NAT") )
if ( isflagset("NAT") && has_body("application/sdp") )
rtpproxy_answer("ro");',`')
xlog("incoming reply\n");
}
Expand Down

0 comments on commit b528652

Please sign in to comment.