[OpenSIPS-Users] Opensips and multipart/mixed

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Sep 15 19:10:54 CEST 2014


Hi Miguel,

Unfortunately, at script level, you cannot get do multi-parse body (via 
variables) - even so, it is a something interesting and I will add it as 
a feature request.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 14.09.2014 01:53, Miguel Oyarzo wrote:
>
> Hi,
>
> I want to extract specific metadata from a multipart/mixed body of a 
> INVITE message. Is there any way to assign an specific content to a 
> variable?
>
> e.g:
> ---------------------
> INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
> Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
> .
> .
> Content-Type: multipart/mixed;boundary=media
>
> --media
> m=audio [media_port] RTP/AVP 8
> .
> .
> --media
> Content-Type: application/rs-metadata
> <?xml
> A
> B
> C
> xml>
> ---------------------
>
> I opensips:
>
> $var=get_content(rs-metadata);
> // $var is now  (A,B,C)
>
> Is this possible in Opensips?
>
> Thanks,
>
> -- 
> "Efficiency is doing things right; effectiveness is doing the right 
> things(Peter Drucker)"
>
> Miguel Oyarzo
> DevOps & VoIP Engineer
> Linux User: # 483188 - counter.li.org <http://counter.li.org>
> http://au.linkedin.com/in/mikeaustralia
> Melbourne, Australia
>
>
> _______________________________________________
> Users mailing list
> 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/20140915/cebab9d7/attachment.htm>


More information about the Users mailing list