<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The problem is not with RANDOM. $fU is not taking more than 10 digit number. What could be the reason?<br class=""><br class="">$var(x) = 123456789012;<br class=""><br class="">$fU = $var(x);<br class="">uac_replace_from("$var(x)","”);<br class=""><br class=""><br class="">The above code is assigning cli with 2147483647. Could you please help me on this<br class=""><br class="">Regards<br class="">Cibin<br class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 23-Mar-2016, at 3:33 PM, Cibin Paul <<a href="mailto:paul_cibin@me.com" class="">paul_cibin@me.com</a>> wrote:<br class=""><br class="">Daniel,<br class=""><br class="">I tried using $RANDOM. It is always giving a random value between 9 digits to 10 digits  How can I get a random value between 10 digits to 13 digits. <br class=""><br class="">Regards<br class="">Cibin<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 22-Mar-2016, at 1:19 PM, Cibin Paul <<a href="mailto:paul_cibin@me.com" class="">paul_cibin@me.com</a>> wrote:<br class=""><br class="">Thanks Daniel for the pointer. I will check both modules<br class=""><br class="">Regards<br class="">Cibin<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 22-Mar-2016, at 1:13 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:<br class=""><br class=""><br class=""><br class="">On 22/03/16 08:40, Cibin Paul wrote:<br class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Thanks Daniel,<br class=""><br class="">I will try app_lua as you said this being faster compared to $RANDOM.<br class=""></blockquote>I didn't say that app_lua is faster than $RANDOM -- what I said is that<br class="">app_lua is also fast.<br class=""><br class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="">Now if I want to modify the caller id number (ANI) , can I assign the newly generated number to the variable $fU?<br class=""></blockquote><br class="">Yes, look also at uac module for functions to replace From URI.<br class=""><br class="">Cheers,<br class="">Daniel<br class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="">Regards<br class="">Cibin<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 22-Mar-2016, at 12:50 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:<br class=""><br class="">Hello,<br class=""><br class="">besides $RANDOM from cfgutils as pointed already, you can use an<br class="">embedded interpreter (e.g., app_lua is really fast).<br class=""><br class="">If you need some unique values, but not only numbers, see uuid module.<br class=""><br class="">Cheers,<br class="">Daniel<br class=""><br class="">On 22/03/16 07:54, Cibin Paul wrote:<br class=""><blockquote type="cite" class="">Hi,<br class=""><br class="">How can I generate a random number say of length 10-14 in Kamailio. Can I use cfgutils for this. Please advise<br class=""><br class="">Regards<br class="">Cibin<br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br class="">sr-users@lists.sip-router.org<br class="">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br class=""></blockquote>-- <br class="">Daniel-Constantin Mierla<br class="">http://www.asipto.com<br class="">http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda<br class="">Kamailio World Conference, Berlin, May 18-20, 2016 - http://www.kamailioworld.com<br class=""><br class=""><br class="">_______________________________________________<br class="">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br class="">sr-users@lists.sip-router.org<br class="">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br class=""></blockquote></blockquote><br class="">-- <br class="">Daniel-Constantin Mierla<br class="">http://www.asipto.com<br class="">http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda<br class="">Kamailio World Conference, Berlin, May 18-20, 2016 - http://www.kamailioworld.com<br class=""></blockquote><br class=""></blockquote><br class="">_______________________________________________<br class="">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br class=""><a href="mailto:sr-users@lists.sip-router.org" class="">sr-users@lists.sip-router.org</a><br class="">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br class=""></blockquote><br class=""></body></html>