Skip to content

Commit

Permalink
Don't push throug RTPProxy streams with port 0 in SDP
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpaiu committed Feb 11, 2016
1 parent e8e0353 commit 5dec43a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/rtpproxy/rtpproxy.c
Expand Up @@ -3712,6 +3712,13 @@ force_rtp_proxy_body(struct sip_msg* msg, struct force_rtpp_args *args, pv_spec_
goto error;
}
++medianum;

/* If the callee wants to neither send nor receive a stream offered by
the caller, the callee sets the port number of that stream to zero in
its media description - don't engage rtpproxy for such streams */
if (oldport.s[0] == '0' && oldport.len == 1)
continue;

if (asymmetric != 0 || real != 0) {
newip = oldip;
} else {
Expand Down

0 comments on commit 5dec43a

Please sign in to comment.