[asterisk-users] Random File Name

Zeeshan Zakaria zishanov at gmail.com
Tue Sep 14 09:19:25 CDT 2010


I use ${UNIQUEID} with ${CDR(accountcode)} and it works great. But this is
when you have an accountcode for each user. As the last poster suggest, you
can append it with date and time and it'll be truly unique and also help you
keep track of the recording.

Zeeshan A Zakaria

--
www.ilovetovoip.com

On 2010-09-14 9:54 AM, "Dan Journo" <dan at keshercommunications.com> 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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100914/cfd0edcc/attachment.htm 


More information about the asterisk-users mailing list