Hi all,

After doing further experiments, the reason that the OpenSIPS server do not
replace the IP of the callee with the RTPProxy's IP is because the OpenSIPS
server calls ``FORCE_RTP_PROXY_RET (-1)''. Specifically, when processing the
SDP from Polycom device (soundpoint 550), the server does not continue to
modify SDP after running the following code. I also give the related cp,
nortpproxy_str.s and cp1 below. When I force the server to continue handling
SDP modification (ignore proxied != 0 && force == 0 termination condition),
the OpenSIPS server requests the RTPProxy to open relay ports as expected. I
am unable to find the root cause of this issue. I will appreciate any help.

Best regards,
Chen-Che

module/rtpproxy/rtpproxy.c
proxied = 0;
if (nortpproxy_str.len) {
        for ( cp=args->body.s ; (len=args->body.s+args->body.len-cp) >=
nortpproxy_str.len ; ) {
                cp1 = ser_memmem(cp, nortpproxy_str.s, len, nortpproxy_str.len);
                if (cp1 == NULL)
                        break;
                if (cp1[-1] == '\n' || cp1[-1] == '\r') {
                        proxied = 1;
                        break;
                }
                cp = cp1 + nortpproxy_str.len;
        }
}
if (proxied != 0 && force == 0) {
        FORCE_RTP_PROXY_RET (-1);
}

cp: v=0#015#012o=- 1167610243 1167610243 IN IP4
192.168.3.177#015#012s=Polycom IP Phone#015#012c=IN IP4
192.168.3.177#015#012t=0 0#015#012m=audio 2226 RTP/AVP 0
101#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:101
telephone-event/8000#015#012m=video 0 RTP/AVP 103 99 98 97 96
34#015#012a=nortpproxy:yes #015#012a=rtpmap:103 VP8/90000#015#012a=rtpmap:99
MP4V-ES/90000#015#012a=fmtp:99 profile-level-id=3#015#012a=rtpmap:98
H263-1998/90000#015#012a=fmtp:98 CIF=1;QCIF=1#015#012a=rtpmap:97
theora/90000#015#012a=rtpmap:96 x-snow/90000#015

nortpproxy_str.s: a=nortpproxy:yes

cp1: a=nortpproxy:yes #015#012a=rtpmap:103 VP8/90000#015#012a=rtpmap:99
MP4V-ES/90000#015#012a=fmtp:99 profile-level-id=3#015#012a=rtpmap:98
H263-1998/90000#015#012a=fmtp:98 CIF=1;QCIF=1#015#012a=rtpmap:97
theora/90000#015#012a=rtpmap:96 x-snow/90000#015



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Unable-to-parse-SDP-when-processing-200-OK-from-pure-audio-polycom-phone-tp7590276p7590664.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to