View previous topic :: View next topic |
Author |
Message |
rentorbuy at yahoo.com Guest
|
Posted: Thu Mar 06, 2008 11:07 am Post subject: [asterisk-users] format of UNIQUEID variable |
|
|
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 |
|
Back to top |
|
|
tilghman at mail.jeffa... Guest
|
Posted: Thu Mar 06, 2008 11:50 am Post subject: [asterisk-users] format of UNIQUEID variable |
|
|
On Thursday 06 March 2008 10:07:26 Vieri wrote:
Quote: | 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 |
|
Back to top |
|
|
tony at softins.clara.... Guest
|
Posted: Thu Mar 06, 2008 12:04 pm Post subject: [asterisk-users] format of UNIQUEID variable |
|
|
In article <886755.64752.qm at web32606.mail.mud.yahoo.com>,
Vieri <rentorbuy at yahoo.com> wrote:
Quote: | 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 |
|
Back to top |
|
|
rentorbuy at yahoo.com Guest
|
Posted: Thu Mar 06, 2008 4:34 pm Post subject: [asterisk-users] format of UNIQUEID variable |
|
|
--- Tony Mountifield <tony at softins.clara.co.uk> wrote:
Quote: | 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>
|
Thanks!
So for the sake of backward compatibility, if I dont'
define sysname in 1.4 then the uniqueid will be just
like in 1.2.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
|
Back to top |
|
|
|