chan_local: Switch from using a random 4 digit hex identifier to unique id
authorJonathan Rose <jrose@digium.com>
Tue, 11 Sep 2012 22:40:02 +0000 (22:40 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 11 Sep 2012 22:40:02 +0000 (22:40 +0000)
commit6f8bad0eace50f04f41e6db2d6a7d4de6dcdce6d
tree3cdf4e5bc831e2d9b0f854ab7226188b27c8f5a2
parent8963829390ca45b269c99144b1ffb96d17d9a3d3
chan_local: Switch from using a random 4 digit hex identifier to unique id

Changes chan_local channels to use an 8 digit hex identifier generated
atomically and sequentially in order to eliminate the chance of having
multiple channels with the same name during high call volume situations.

(issue ASTERISK-20318)
Reported by: Dan Cropp
Review: https://reviewboard.asterisk.org/r/2104/
........

Merged revisions 372902 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 372916 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 372917 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@372918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_local.c