[Asterisk-Dev] Making uniqueID unique in a multiple system environment.

Kevin P. Fleming kpfleming at digium.com
Sat Aug 6 13:50:45 MST 2005


Chris A. Icide wrote:

> If we added an entry to a config file (asterisk.conf?  or maybe general
> section of extensions.conf? cdr.conf has been mentioned as well), where
> we set system-id=X.  Then when a channel is created use
> <system-id>.<timestamp>.<serial>, barring human error, the uniqueid
> generated would be unique under a single managed system (which includes
> multiple servers - think BGP/IGP for comparison).  The system-id only
> needs to be unqiue for the "cluster" of servers running under a single
> management structure.

Adding such an entry to the [general] section of cdr.conf would be the 
most appropriate. I would suggest that the entry not require any 
particular syntax (numeric, alphanumeric, whatever)... just take what 
the admin puts in there and prefix the normal UniqueID with it.



More information about the asterisk-dev mailing list