<div dir="ltr">Awesome, and I assume to recover the integer value, I need sth like, as well:<div><br></div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">   $var(param1) =  </span>$(var(param1){<a href="http://s.int">s.int</a>});</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Thanks very much,</div><div class="gmail_extra">Alireza<br><br><div class="gmail_quote">On Fri, Aug 15, 2014 at 2:48 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 08/15/2014 02:43 PM, AliReza Khoshgoftar Monfared wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks very much Alex and Hugh,<br>
<br>
I think what Hugh mentioned is the best way to process text in Kamailio<br>
without relying on an external tool and it's good to know it, and Alex's<br>
suggestion is great for transferring a single number.<br>
</blockquote>
<br></div>
It does not have to be a single number. A header can have any value you like, e.g.<br>
<br>
   X-AliReza-Custom-Header: param1=x;param2=y;param3=z<br>
<br>
Which you could then extract with string transformations[1]:<br>
<br>
   $var(param1) = $(hdr(X-AliReza-Custom-Header)<u></u>{s.select,0,;});<br>
   $var(param2) = $(hdr(X-AliReza-Custom-Header)<u></u>{s.select,1,;});<br>
   $var(param3) = $(hdr(X-AliReza-Custom-Header)<u></u>{s.select,2,;});<br>
<br>
-- Alex<br>
<br>
[1] <a href="http://www.kamailio.org/wiki/cookbooks/4.1.x/transformations#sselect_index_separator" target="_blank">http://www.kamailio.org/wiki/<u></u>cookbooks/4.1.x/<u></u>transformations#sselect_index_<u></u>separator</a><div class="HOEnZb">

<div class="h5"><br>
<br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
Tel: <a href="tel:%2B1-678-954-0670" value="+16789540670" target="_blank">+1-678-954-0670</a><br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com/" target="_blank">http://www.alexbalashov.com/</a><br>
<br>
Please be kind to the English language:<br>
<br>
<a href="http://www.entrepreneur.com/article/232906" target="_blank">http://www.entrepreneur.com/<u></u>article/232906</a><br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</div></div></blockquote></div><br></div></div>