rtpproxy icon indicating copy to clipboard operation
rtpproxy copied to clipboard

media to SIP IP (instead of RTP)

Open snen opened this issue 8 years ago • 4 comments

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 avatar Oct 20 '15 11:10 snen

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 avatar Oct 20 '15 12:10 snen

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)."

snen avatar Oct 20 '15 13:10 snen

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

sobomax avatar Oct 28 '15 05:10 sobomax

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.

snen avatar Oct 28 '15 13:10 snen