<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>maybe you can extract the lines from the body with the
      transformation line start with:</p>
    <p>  -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/cookbooks/4.4.x/transformations#linesw_match">https://www.kamailio.org/wiki/cookbooks/4.4.x/transformations#linesw_match</a></p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 08/09/16 01:44, José Seabra wrote:<br>
    </div>
    <blockquote
cite="mid:CAEVZRWtyF=Cd5e79Gqra1UdyUsgkgnwMCik3mTuGU-z3SM5a3g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello there,
        <div>I'm facing some issues trying to get the attributes from
          notify Body that contains information that i need for my calls</div>
        <div>.</div>
        <div>First i save the $rb into $var then i try to replace the
          characters #012 that seems to be the separator of all
          attributes in the body, i have tried it using s.select,
          s.strip, s.replace but without any success in all of them.</div>
        <div><br>
        </div>
        <div>The body msg is something like this:</div>
        <div><br>
        </div>
        <div>Calling-Name-Status: available#012Calling-Name: "teste    
           XX" <<a moz-do-not-send="true"
            href="mailto:sip%3AXXXXXXXXX@domain.com">sip:XXXXXXXXX@domain.com</a>>#012Presentation-Indicator:
          allowed</div>
        <div><br>
        </div>
        <div>Anyone have any idea how can I get the value of each
          attribute:</div>
        <div>e.g:</div>
        <div>Calling-Name-Status: available<br clear="all">
          <div>Calling-Name: "teste      XX" <<a
              moz-do-not-send="true"
              href="mailto:sip%3AXXXXXXXXX@domain.com">sip:XXXXXXXXX@domain.com</a>><br>
          </div>
          <div>Presentation-Indicator: allowed<br>
          </div>
          <div><br>
          </div>
          <div>Best Regards</div>
          <div><br>
          </div>
          -- 
          <div class="gmail_signature">
            <div>José</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<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></pre>
  </body>
</html>