[asterisk-users] format of UNIQUEID variable

Tony Mountifield tony at softins.clara.co.uk
Thu Mar 6 11:04:56 CST 2008


In article <886755.64752.qm at web32606.mail.mud.yahoo.com>,
Vieri <rentorbuy at yahoo.com> wrote:
> What is the format of the UNIQUEID variable?
> 
> It seems to be something like:
> 40651204817492.56
> 
> Does it always have the pattern
> <long_number>.<short_number>?

If the system has been running a long time with many calls, it could
be <long_number>.<long_number> :-)

The first ("long") number is the Unix time_t timestamp (number of seconds
since 00:00:00 GMT on 1 Jan 1970) of when the channel was created.

The second ("short") number is a sequence number, starting at 0 for the
first created channel since Asterisk started up, and incrementing by 1
for each subsequent channel.

In Asterisk 1.4 or later, an optional system name can be defined in
asterisk.conf, and if defined, the unique ID becomes:
<system_name>-<timestamp>.<seq_num>

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list