<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Thanks a lot Alex,</div><div class=""><br class=""></div><div class="">Now using this random generated number, can I modify the ANI something like this on INVITE</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">if(!($fU=~"^(\+1|1[1-9][0-9]{10})$"))</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">        {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">                $fU = ($RANDOM / 73249615);</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">        }</div></div><div class=""><br class=""></div><div class="">Regards</div><div class="">Cibin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 22-Mar-2016, at 12:28 PM, Alex Balashov <<a href="mailto:abalashov@evaristesys.com" class="">abalashov@evaristesys.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Cibin,<br class=""><br class="">Yes, that is what $RANDOM is for. It returns a 32-bit signed integer (‎range 0 - 2^31), so you can divide it by the appropriate value to get something in the length range you're after.<br class="">‎<br class="">--<br class="">Alex Balashov | Principal | Evariste Systems LLC<br class="">1447 Peachtree Street NE, Suite 700<br class="">Atlanta, GA 30309<br class="">United States<br class=""><br class="">Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)<br class="">Web: <a href="http://www.evaristesys.com/" class="">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" class="">http://www.csrpswitch.com/</a><br class=""><br class="">Sent from my BlackBerry.<br class=""><br class=""><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=""></div></div></blockquote></div><br class=""></div></body></html>