Generate very unique asterisk tracknumber
This asterisk trick can be usefull if you have multiple asterisk servers getting calls and sending them on the same database or on the same log file.
In some rare cases, when you have a lot of calls, you can find your self with two different calls on two servers with the same unique id or tracknumber.
You can set asterisk to prepend a string to the unique id.
To do so :
vi /etc/asterisk/asterisk.conf
[directories]
….
[options]
systemname = mypbx1; prefix uniqueid with a system name for global uniqueness issues
Then reload and see what you have in ${UNIQUEID} field of your channels and in you CDR files.
February 3, 2009 | Filed Under Tricks | Leave a Comment