[OpenSIPS-Users] Fix_nated_SDP works very well. How to do more changes in the SDP?

Rodrigo Pimenta Carvalho pimenta at inatel.br
Tue Apr 19 14:10:29 CEST 2016


Hi Daniel.


Thank you very much!

I will read about it right now.


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


________________________________
De: users-bounces at lists.opensips.org <users-bounces at lists.opensips.org> em nome de Daniel Zanutti <daniel.zanutti at gmail.com>
Enviado: segunda-feira, 18 de abril de 2016 18:56
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] Fix_nated_SDP works very well. How to do more changes in the SDP?

Hi Rodrigo

In theory you can modify any SIP/SDP using text ops:

http://www.opensips.org/html/docs/modules/1.6.x/textops.html#id293600

I don't know any other way...

Regards


On Mon, Apr 18, 2016 at 6:17 PM, Rodrigo Pimenta Carvalho <pimenta at inatel.br<mailto:pimenta at inatel.br>> wrote:


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<tel:%2B55%2035%203471%209200> RAMAL 979

_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160419/f42e4859/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OutlookEmoji-?.png
Type: image/png
Size: 506 bytes
Desc: OutlookEmoji-?.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20160419/f42e4859/attachment.png>


More information about the Users mailing list