<div dir="ltr"><div><br></div>Thank you Daniel.<div>This works.</div><div><br></div><div>BR</div><div>José</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-12 11:49 GMT+01:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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 href="https://www.kamailio.org/wiki/cookbooks/4.4.x/transformations#linesw_match" target="_blank">https://www.kamailio.org/wiki/<wbr>cookbooks/4.4.x/<wbr>transformations#linesw_match</a></p>
<p>Cheers,<br>
Daniel<br>
</p><div><div class="h5">
<br>
<div>On 08/09/16 01:44, José Seabra wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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 href="mailto:sip%3AXXXXXXXXX@domain.com" target="_blank">sip:XXXXXXXXX@domain.com</a>>#<wbr>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 href="mailto:sip%3AXXXXXXXXX@domain.com" target="_blank">sip:XXXXXXXXX@domain.com</a>><br>
</div>
<div>Presentation-Indicator: allowed<br>
</div>
<div><br>
</div>
<div>Best Regards</div>
<div><br>
</div>
--
<div>
<div>José</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> - <a href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a></pre>
</font></span></div>
<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div>