Re: [Siproxd-users] Re-writing RFC 3605 SDP attributes
Status: Beta
Brought to you by:
tries
From: Darrin S. <dar...@gm...> - 2011-05-24 06:35:15
|
I had a poke at the source code and made a quick change that addressed my problem. I simply clear the rtcp media attribute on packets that flow through siproxd. The patch below is against the siproxd-08May2011.tar.gz tarball. As the comment says, a more correct solution is to properly implement RFC3605, but this hack seems to work well for me (where I can't set my handsets to omit this field themselves). diff -ur siproxd-0.8.1dev/src/proxy.c siproxd-0.8.1dev-patched/src/proxy.c --- siproxd-0.8.1dev/src/proxy.c 2010-03-29 10:30:58.000000000 -0700 +++ siproxd-0.8.1dev-patched/src/proxy.c 2011-05-08 10:43:19.000000000 -0700 @@ -965,6 +965,14 @@ "MUTE c= record (media level)"); } } + + /* + * Clear any RFC 3605 rtcp attributes. It would probably be better + * to actually make use of them on the inbound and outbound sides, + * but clearing them is better than possibly sending NAT'd IP addresses + * out to the internet. + */ + sdp_message_a_attribute_del(sdp, media_stream_no, "rtcp"); /* start an RTP proxying stream */ if (sdp_message_m_port_get(sdp, media_stream_no)) { |