[asterisk-users] Random File Name

Steve Edwards asterisk.org at sedwards.com
Tue Sep 14 09:26:50 CDT 2010


On Tue, 14 Sep 2010, Gareth Blades wrote:

> ${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.

UNIQUEID is the concatenation of AST_SYSTEM_NAME, the number of seconds 
since EPOCH and the number of channels created by this instance of 
Asterisk since it was started. (Check channel.c.)

How is this not unique?

Since UNIQUEID is already based on time, how does adding the date and time 
make it truly unique?

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list