<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi Miguel,<br>
        <br>
        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.<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 14.09.2014 01:53, Miguel Oyarzo wrote:<br>
    </div>
    <blockquote
cite="mid:CA+d2mV94qQsc1=GdE61HcPJ7kiNFsGaaJXd++y4is0kzE3Q3yw@mail.gmail.com"
      type="cite">
      <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>&lt;?xml <br>
        </div>
        <div>A<br>
        </div>
        <div>B<br>
          C<br>
          xml&gt;<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
                  &amp; 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 color="#888888"
                  face="arial, sans-serif"><a moz-do-not-send="true"
                    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
                    color="#888888" face="arial, sans-serif"><a
                      moz-do-not-send="true"
                      href="http://au.linkedin.com/in/mikeaustralia"
                      target="_blank">http://au.linkedin.com/in/mikeaustralia</a> </font><br>
                  <font color="#888888" face="arial, sans-serif">Melbourne,
                    Australia</font></span>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>