<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>to convert a string value stored in a variable to integer, use
      the {s.int} transformation, like:</p>
    <p>$avp(intval) = $(var(strval){s.int});</p>
    <p>See more about transformations at:</p>
    <p>  * <a
href="https://www.kamailio.org/wiki/cookbooks/devel/transformations#sint">https://www.kamailio.org/wiki/cookbooks/devel/transformations#sint</a></p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 20.05.19 13:52, Stephen Bucklin
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABfoWXW+eA_ZmNOSZxrR1LDmDYxWixSiPHOE76jttSHMAprHfg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Hi,</div>
      <div dir="auto">Any quick thoughts. I am using a REDIS "GET" to
        retrieve a JSON obj as a string from REDIS and then the JANSSON
        get value to extract a key value from the string and pop it into
        an AVP ($avp(val)) and wish to ensure the value is an integer in
        the AVP. New to this, be kind :-)</div>
      <div dir="auto">Steve</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>