asterisk/pbx
Steve Murphy a40f1cc1c5 Merged revisions 136726 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r136726 | murf | 2008-08-07 18:15:34 -0600 (Thu, 07 Aug 2008) | 32 lines


(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/trunk@136746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-08 00:48:35 +00:00
..
ael/ael-test Merged revisions 136726 via svnmerge from 2008-08-08 00:48:35 +00:00
Makefile various minor fixes created while i worked on getting *every* Asterisk module to build on laptop in dev mode: 2008-06-29 16:19:29 +00:00
dundi-parser.c Start moving in changes from my resolve-shadow-warnings branch. Going to do 2008-08-07 00:44:55 +00:00
dundi-parser.h Merge another change from team/russell/events ... 2008-06-10 12:48:50 +00:00
pbx_ael.c Merged revisions 111341 via svnmerge from 2008-03-27 04:47:12 +00:00
pbx_config.c Start moving in changes from my resolve-shadow-warnings branch. Going to do 2008-08-07 00:44:55 +00:00
pbx_dundi.c Start moving in changes from my resolve-shadow-warnings branch. Going to do 2008-08-07 00:44:55 +00:00
pbx_gtkconsole.c various minor fixes created while i worked on getting *every* Asterisk module to build on laptop in dev mode: 2008-06-29 16:19:29 +00:00
pbx_loopback.c Merged revisions 120226 via svnmerge from 2008-06-03 22:42:03 +00:00
pbx_lua.c make datastore creation and destruction a generic API since it is not really channel related, and add the ability to add/find/remove datastores to manager sessions 2008-08-05 16:56:11 +00:00
pbx_realtime.c Code wasn't ready to be merged - see -dev list discussion 2008-07-09 03:39:59 +00:00
pbx_spool.c Merged revisions 123710 via svnmerge from 2008-06-18 20:23:58 +00:00