Skip to content

Commit 135a0d6

Browse files
committed
Don't push throug RTPProxy streams with port 0 in SDP
(cherry picked from commit 5dec43a)
1 parent 8133656 commit 135a0d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/rtpproxy/rtpproxy.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3746,6 +3746,13 @@ force_rtp_proxy_body(struct sip_msg* msg, struct force_rtpp_args *args, pv_spec_
37463746
goto error;
37473747
}
37483748
++medianum;
3749+
3750+
/* If the callee wants to neither send nor receive a stream offered by
3751+
the caller, the callee sets the port number of that stream to zero in
3752+
its media description - don't engage rtpproxy for such streams */
3753+
if (oldport.s[0] == '0' && oldport.len == 1)
3754+
continue;
3755+
37493756
if (asymmetric != 0 || real != 0) {
37503757
newip = oldip;
37513758
} else {

0 commit comments

Comments
 (0)