[asterisk-users] Random File Name

Gareth Blades list-asterisk at skycomuk.com
Tue Sep 14 08:50:46 CDT 2010


Dan Journo wrote:
> Hi,
> 
>  
> 
> Im looking at using MixMonitor to record calls and I know that I need to 
> set the filename first.
> 
>  
> 
> However, with the number of calls coming in, hard coding the filename 
> isnt an option.
> 
>  
> 
> So I need to do something like this:-
> 
>  
> 
> MixMonitor(RANDOMNUMBER.wav)
> 
>  
> 
> But can't find a way to generate a random number.
> 
>  
> 
> I thought that maybe I could use a unique variable that already exists 
> for the current call, but I'm not sure which one to pick.
> 
>  
> 
> Can anyone give me some advice on this?
> 
>  
> 
> Thanks
> 
> Dan
> 

${UNIQUEID} is going to be realtivly unique certnely in the short term 
unless the sysyem is restarted. I mormally combine it with the date & 
time to make it truly unique.



More information about the asterisk-users mailing list