<div dir="ltr"><div><div><br></div>Hi,<br><br></div><div>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?<br><br></div><div>e.g:<br></div><div>---------------------<br>INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0<br>Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]<br>.<br>.<br>Content-Type: multipart/mixed;boundary=media<br></div><div><br></div><div>--media<br></div><div>m=audio [media_port] RTP/AVP 8<br>.<br>.<br></div><div>--media<br></div><div>Content-Type: application/rs-metadata<br></div><div><?xml <br></div><div>A<br></div><div>B<br>C<br>xml><br></div>---------------------<div><div><br></div><div>I opensips:<br><br></div><div>$var=get_content(rs-metadata);</div><div>// $var is now (A,B,C)<br></div><div><br>Is this possible in Opensips?<br></div><div><br></div><div>Thanks,<br></div><div><br>-- <br><div dir="ltr"><div><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">"Efficiency is doing things right; effectiveness is doing the right things</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> (Peter Drucker)</span>"<br></span></div><br><div><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Miguel Oyarzo</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">DevOps & VoIP Engineer</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Linux User: # 483188 - </span><font face="arial, sans-serif" color="#888888"><a href="http://counter.li.org" target="_blank">counter.li.org</a></font><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#888888"><a href="http://au.linkedin.com/in/mikeaustralia" target="_blank">http://au.linkedin.com/in/mikeaustralia</a> </font><br><font face="arial, sans-serif" color="#888888">Melbourne, Australia</font></span>
</div></div>
</div></div></div>