Resolve duplicate label used in multiple priorities for the same extension.
authorJonathan Rose <jrose@digium.com>
Mon, 5 Dec 2011 15:04:12 +0000 (15:04 +0000)
committerJonathan Rose <jrose@digium.com>
Mon, 5 Dec 2011 15:04:12 +0000 (15:04 +0000)
commitc5fe1cfdc09180b152ffb4d3dd53b1775b988750
treed7a4ef8c426241595e0b7c48dfc42b35b620ef26
parentae61df53f149bcfddf66c1e3235ae82f5f9876eb
Resolve duplicate label used in multiple priorities for the same extension.

Prior to this patch, if labels with the same name were used for different priorities in
the same extension, the new label would be accepted, but it would be unusable since
attempts to reach that label would just go to the first one. Now pbx.c detects this,
generates a warning in logs, and culls the label before adding it to the dialplan.

(closes issue ASTERISK-18807)
Reported by: Kenneth Shumard
Patches:
pbx.c.patch uploaded by Kenneth Shumard (License 5077)
........

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c