[Freeswitch-users] Random callerid

Sergey Safarov s.safarov at gmail.com
Wed Sep 16 20:21:23 MSD 2015


Try initialize random number variable via lua script
Exambles
http://stackoverflow.com/questions/20154991/generating-uniform-random-numbers-in-lua

On Wed, Sep 16, 2015, 09:06 Volodymyr Fedorov <lexxua at gmail.com> wrote:

> Hello, you need something like this:
>         <action application="set"
> data="effective_caller_id_name=${expr(randomize(&x);ceil(random(0,1000,&x)))}"/>
>         <action application="set"
> data="effective_caller_id_number=${expr(randomize(&x);ceil(random(0,1000,&x)))}"/>
>
> On Thu, Sep 3, 2015 at 5:38 AM, Fernando Villarroel <fvillarroel at yahoo.com
> > wrote:
>
>> Dear All.
>>
>> How i can set variable caller_id_number random
>>
>> How i can do?
>>
>> Enviado desde mi iPhone
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Best regards,
> Volodymyr
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150916/46d4805d/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list