[OpenSIPS-Users] Random hex string
Răzvan Crainea
razvan at opensips.org
Tue Sep 9 12:52:25 CEST 2014
Hi, Dmitry!
You can generate a random integer and convert it to hexa. This code
should do the trick:
xlog("RAND string: $(RANDOM{s.dec2hex})\n");
Don't forget to load the cfgutils module that contains the $RANDOM variable.
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 09/08/2014 11:51 AM, neumann wrote:
> How I can generate a random hex string in route logic?
>
> ————————————
>
> Timofeev Dmitry
> VoIP Engineer
> Linux, Asterisk, Freeswitch, Cisco solutions
> Skype: itsroot
> icq: 227227933
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140909/c28b9598/attachment.htm>
More information about the Users
mailing list