[asterisk-dev] Is ast_channel->uniqueid really unique ?

Russell Bryant russell at digium.com
Mon Jan 22 13:55:39 MST 2007


Oded Arbel wrote:
> The problem I'm having, is that I don't think that a channel's uniqueid
> is unique across multiple Asterisk installations - under some very
> common behaviors of a multiple Asterisk installation, some channels
> created on different Asterisk instances will have the same uniqueid.
> 
> I'm thinking about changing the uniqueid generation algorithm to
> something that generates ids that have a high statistical probability to
> be unique across multiple instances of Asterisk given some reasonable
> assumptions (for example - that there are less then a few thousands of
> Asterisk instances to be considered). I'm not looking for a truly
> globally unique identifier, just unique enough.

This is already accounted for in Asterisk 1.4.  If you set the 
systemname option in asterisk.conf, it will be used as the prefix for 
the uniqueid.  If you set this to a different value on each box, this 
problem is solved.  :)

-- 
Russell Bryant
Software Engineer
Digium, Inc.


More information about the asterisk-dev mailing list