]> git.ipfire.org Git - thirdparty/asterisk.git/commit
(closes issue #13236)
authorSteve Murphy <murf@digium.com>
Fri, 8 Aug 2008 00:15:34 +0000 (00:15 +0000)
committerSteve Murphy <murf@digium.com>
Fri, 8 Aug 2008 00:15:34 +0000 (00:15 +0000)
commit195fe34304a7e5e6623a176a7b9cd92b920c1a49
tree85991a17b8c06f3df7fec7df4cb2844df3cdf289
parent31446d74a7e484f4e8be1cb29c5c136fe05efad1
(closes issue #13236)
Reported by: korihor

Wow, this one was a challenge!

I regrouped and ran a new strategy for
setting the ~~MACRO~~ value; I set it once
per extension, up near the top. It is only
set if there is a switch in the extension.

So, I had to put in a chunk of code to detect
a switch in the pval tree.

I moved the code to insert the set of ~~exten~~
up to the beginning of the gen_prios routine,
instead of down in the switch code.

I learned that I have to push the detection
of the switches down into the code, so everywhere
I create a new exten in gen_prios, I make sure
to pass onto it the values of the mother_exten
first, and the exten next.

I had to add a couple fields to the exten
struct to accomplish this, in the ael_structs.h
file. The checked field makes it so we don't
repeat the switch search if it's been done.

I also updated the regressions.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@136726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/ael_structs.h
pbx/ael/ael-test/ref.ael-ntest10
pbx/ael/ael-test/ref.ael-test18
pbx/ael/ael-test/ref.ael-test8
pbx/ael/ael-test/ref.ael-vtest13
pbx/pbx_ael.c