[OpenSIPS-Users] Opensips and multipart/mixed
Miguel Oyarzo
miguelaustro at gmail.com
Sun Sep 14 00:53:23 CEST 2014
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://au.linkedin.com/in/mikeaustralia
Melbourne, Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140914/bdce1e8f/attachment.htm>
More information about the Users
mailing list