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>? ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
On Thursday 06 March 2008 10:07:26 Vieri 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>?UniqueID is composed of the epoch when a call starts, plus a monotonically incrementing integer. Together, they will be unique for all calls originating from a single machine, as long as they are treated as a string and not as a float. Note that you can set asterisk to prefix the hostname to a uniqueid from asterisk.conf, which should make uniqueIDs globally unique (as long as you aren't repeating hostnames). -- Tilghman
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