[OpenSIPS-Users] Is it possible to read parts of SDP? What is the module to do it?

Rodrigo Pimenta Carvalho pimenta at inatel.br
Wed Jul 27 22:14:49 CEST 2016


Hi.


A SDP message is:


v=0
o=Z 0 0 IN IP4 192.168.21.40
s=Z
c=IN IP4 192.168.21.40
t=0 0
m=audio 8000 RTP/AVP 3 110 8 0 98 101
a=rtpmap:110 speex/8000
a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv


It can be in a SIP INVITE or in a SIP OK message.


How can I read the IP4 from there, in case of SIP INVITE or SIP OK, and get the value 192.168.21.40 for example?

Is there a module and function that provides such information in my script?


Any hint will be very helpful!


Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160727/a4c86e90/attachment.htm>


More information about the Users mailing list