<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    yes, transformations are the way to parse/extract values from a
    variable. If it is something more complex, then using an embedded
    language such as Lua, Perl, Python ... can be a more convenient
    alternative.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 08/08/14 13:41, Jonathan Hunter
      wrote:<br>
    </div>
    <blockquote cite="mid:DUB127-W54B7EA2BA7095886307CC6BDEE0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Hello Daniel,
        <div><br>
        </div>
        <div>Thanks for that.</div>
        <div><br>
        </div>
        <div>Is the best way to manipulate the contents of $rb to use
          transformations to extract particular information?</div>
        <div><br>
        </div>
        <div>I just want to search or extract what I get in $rb and use
          it for subsequent routing.</div>
        <div><br>
        </div>
        <div>Jon<br>
          <br>
          <div>
            <hr id="stopSpelling">Date: Fri, 8 Aug 2014 13:33:20 +0200<br>
            From: <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
            To: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            Subject: Re: [SR-Users] xhttp Module Version 4.1<br>
            <br>
            Hello,<br>
            <br>
            yes, $rb is the way to get the body. If you have big bodies
            and you use it in other expressions, you may need to
            increase the value for pv_buffer_size global parameter.<br>
            <br>
            Cheers,<br>
            Daniel<br>
            <br>
            <div class="ecxmoz-cite-prefix">On 08/08/14 12:56, Jonathan
              Hunter wrote:<br>
            </div>
            <blockquote
              cite="mid:DUB127-W63D3311BBE6AE64A17864BBDEE0@phx.gbl">
              <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
              <div dir="ltr">Hi Guys,
                <div><br>
                </div>
                <div>I am able to do this using <b>$rb</b> , is this
                  the best method for this if I want to capture the
                  details and manipulate or store accordingly into
                  variables?</div>
                <div><br>
                </div>
                <div>Thanks</div>
                <div><br>
                </div>
                <div>Jon<br>
                  <br>
                  <div>
                    <hr id="ecxstopSpelling">From: <a
                      moz-do-not-send="true"
                      class="ecxmoz-txt-link-abbreviated"
                      href="mailto:hunterj91@hotmail.com">hunterj91@hotmail.com</a><br>
                    To: <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-abbreviated"
                      href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                    Date: Fri, 8 Aug 2014 10:31:44 +0000<br>
                    Subject: [SR-Users] xhttp Module Version 4.1<br>
                    <br>
                    <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style>
                    <div dir="ltr"><br>
                      Hi All,
                      <div><br>
                      </div>
                      <div>I am using the xhttp module to receive and
                        respond to HTTP requests to my kamailio
                        instance, and I am trying to extract the body of
                        the HTTP post sent into kamailio, so that I can
                        store it in variables.</div>
                      <div><br>
                      </div>
                      <div>Is this possible?</div>
                      <div><br>
                      </div>
                      <div>I can send 200ok responses with content, this
                        is working well, I just need to try and get
                        details from the received POST, can this be
                        done?</div>
                      <div><br>
                      </div>
                      <div>Thanks</div>
                      <div><br>
                      </div>
                      <div>Jon<br>
                        <div>
                          <div dir="ltr">
                            <div>
                              <div><br>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style> </div>
                    <br>
                    _______________________________________________ SIP
                    Express Router (SER) and Kamailio (OpenSER) -
                    sr-users mailing list <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-abbreviated"
                      href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
                    <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-freetext"
                      href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                      target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div>
                </div>
              </div>
              <br>
              <fieldset class="ecxmimeAttachmentHeader"></fieldset>
              <br>
              <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <br>
            <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre>
            <br>
            _______________________________________________
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list
            <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre>
  </body>
</html>