sippy / rtpproxy

The RTPproxy is a high-performance software proxy for RTP streams that can work together with Sippy B2BUA, Kamailio, OpenSIPS and SER.
http://rtpproxy.org
BSD 2-Clause "Simplified" License
411 stars 114 forks source link

media to SIP IP (instead of RTP) #34

Open snen opened 9 years ago

snen commented 9 years ago

Trying the last master c29f55196f97ef3fa70124628fd94c78b90162ea. I have INVITE with different IP in SIP and RTP (in SDP part). For example: SIP sip_ip:sip_port RTP rtp_ip:rtp_port sip_ip and rtp_ip are public Early media from sippy go to sip_ip:rtp_port, so no any ringback for calling party. If calling party send some RTP to sippy, then sippy switched to rtp_ip:rtp_port and all is fine (just some start RTP are dropped). After ACK it is the same

snen commented 9 years ago

Excuse for troubling i'm using sippy with kamailio. There is option for this:

r - flags that IP address in SDP should be trusted. Without this flag, rtpproxy ignores address in the SDP and uses source address of the SIP message as media address which is passed to the RTP proxy.

snen commented 9 years ago

so only one moment. is this ok without trusted SDP flag: "If calling party send some RTP to sippy, then sippy switched to rtp_ip:rtp_port and all is fine (just some start RTP are dropped)."

sobomax commented 9 years ago

Hi, some logs to understand that scenario would be helpful. Thanks!

snen commented 9 years ago

SipPoint1 -> Kamailio+Syppy_proxy -> FreeSwitch -> Kamailio+Sippy_proxy -> SipPoint2 INVITE from SipPoint1 with diffrent IPv4 in SIP and SDP part (SIP ip is the source address of the message, SDP ip is some else public IPv4 address)

in kamailio.cfg

rtpproxy_manage("co");

After ACK SipPoint1 and SipPoint2 have two-way media throw the chan "SipPoint1 -> Kamailio+Syppy_proxy -> FreeSwitch -> Kamailio+Sippy_proxy -> SipPoint2", but the "r" flag is not enabled. (http://www.kamailio.org/docs/modules/devel/modules/rtpproxy.html r - flags that IP address in SDP should be trusted. Without this flag, rtpproxy ignores address in the SDP and uses source address of the SIP message as media address which is passed to the RTP proxy.)

May be it is the Kamailio RTPPROXY module issue.