Hi.

Fix_nated_sdp() function works very well. I can fix IPs in my SDP, for 
attributes "o" and "c'.


However, due to a particular desire of my customer, I have to change more 
others IPs in my SDP. How to do it? Is it possible?


For example, how to change the pointed IP seen bellow:



v=0
o=- 3669999344 3669999344 IN IP4 xxx.yyy.240.71
s=pjmedia
b=AS:25
t=0 0
a=X-nat:1
m=audio 48053 RTP/AVP 8 110 96
c=IN IP4 xxx.yyy.240.71
b=TIAS:8000
a=rtcp:51193 IN IP4 192.168.100.1
a=sendrecv
a=rtpmap:8 PCMA/8000
a=rtpmap:110 speex/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
a=ice-ufrag:30381869
a=ice-pwd:6268c522
a=candidate:Sc0a864f1 1 UDP 1862270975 192.168.100.1 48053 typ srflx raddr 
192.168.100.241 rport 48053  //<------------------------How to change 
192.168.100.1 to another  IP ????????
a=candidate:Hc0a864f1 1 UDP 1694498815 192.168.100.241 48053 typ host
a=candidate:Sc0a864f1 2 UDP 1862270974 192.168.100.1 51193 typ srflx raddr 
192.168.100.241 rport 51193
a=candidate:Hc0a864f1 2 UDP 1694498814 192.168.100.241 51193 typ host
a=direction:active
a=oldoip:192.168.100.1
a=oldcip:192.168.100.1


We are using ICE and STUN, and it could be already well done if the STUN was on 
Internet as in an ordinary solution.

However, my customer asked me to put my stun server in the same machine of the 
softphone client that generates this SDP content.   [☹]


Any hint will be very helpful!


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to