<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    On 8/2/10 1:23 PM, Chandrakant Solanki wrote:
    <blockquote
      cite="mid:AANLkTikxgVe3+CENuChu9Wy95ovPahbDNUhDD18Bxvtz@mail.gmail.com"
      type="cite">
      <div>Hi<br clear="all">
      </div>
      <div><br>
      </div>
      <div>Is kamailio support floating point operation like..</div>
      <div><br>
      </div>
      <div>num1 = 1</div>
      <div>num2 = 3</div>
      <div><br>
      </div>
      <div>num3 = num1 / num2 i. e. 0.33 = 1 / 3</div>
      <div><br>
      </div>
      <div>Is it possible...?? If yes, How ??</div>
    </blockquote>
    <br>
    no, it is not possible in current version. The cfg variables can
    hold string and integers. There is an extension called XAVP which
    can hold other types, but is not enabled by default (you have to
    recompile with -DWITH_XAVP) and even enabled you cannot operate
    floats on it from config file.<br>
    <br>
    An workaround could be usage of embedded language (exec, perl for
    &lt;=3.0, lua, python for later) to do the operations and store the
    result as string in a cfg variable.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
      cite="mid:AANLkTikxgVe3+CENuChu9Wy95ovPahbDNUhDD18Bxvtz@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      <div>Any Idea??</div>
      <br>
      -- <br>
      Regards,<br>
      <br>
      Chandrakant Solanki<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
</pre>
  </body>
</html>