<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi, Dmitry!<br>
<br>
You can generate a random integer and convert it to hexa. This
code should do the trick:<br>
<br>
xlog("RAND string: $(RANDOM{s.dec2hex})\n");<br>
<br>
Don't forget to load the cfgutils module that contains the $RANDOM
variable.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
On 09/08/2014 11:51 AM, neumann wrote:<br>
</div>
<blockquote
cite="mid:7EBE10CC-2348-4531-A34E-DEF392C6BCA7@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
How I can generate a random hex string in route logic?
<div><br>
<div>
<div style="color: rgb(0, 0, 0); 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;
word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;">————————————<br>
<br>
Timofeev Dmitry<br>
VoIP Engineer<br>
Linux, Asterisk, Freeswitch, Cisco solutions<br>
Skype: itsroot<br>
icq: 227227933<br>
<br>
<br>
</div>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>