[asterisk-users] asterisk call unique id in dialplan

Russell Bryant russell at digium.com
Sun Jul 1 16:02:21 CDT 2007


Alexander Lopez wrote:
> From that file:
> ${UNIQUEID}             * Current call unique identifier
> 
> BEWARE the UNIQUEID can be repeated do not use this as a primary index
> on your databse.

A UNIQUEID value will never be used for more than a single channel on the same 
server.  It is a combination of the current time, and a unique call counter.  It 
could only happen if you both restarted Asterisk and messed around with the 
system clock.  Even then, it is extremely unlikely.

However, it is possible for there to be more than one CDR record for the same 
unique ID.  That varies depending on configuration.

-- 
Russell Bryant
Software Engineer
Digium, Inc.



More information about the asterisk-users mailing list