diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-27 03:21:05 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-27 03:21:05 +0000 |
commit | 046207bd339925c32b8896fb781d1a59b93c9653 (patch) | |
tree | 0e7448e14da5c411aed0eeb89d11c29e1f6ace59 /include/asterisk | |
parent | 16ea253262f7e81e27794a7756c207d116181b45 (diff) |
(closes issue #12302)
Reported by: pj
Tested by: murf
These changes will set a channel variable ~~EXTEN~~ just before generating code
for a switch, with the value of ${EXTEN}. The exten is marked as having a switch,
and ever after that, till the end of the exten, we substitute any ${EXTEN}
with ${~~EXTEN~~} instead in application arguments; (and the ${EXTEN: also).
The reason for this, is that because switches are coded using
separate extensions to provide pattern matching, and
jumping to/from these switch extensions messes up the ${EXTEN} value,
which blows the minds of users.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@111341 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/ael_structs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asterisk/ael_structs.h b/include/asterisk/ael_structs.h index 8b428d33f..01a4244e1 100644 --- a/include/asterisk/ael_structs.h +++ b/include/asterisk/ael_structs.h @@ -178,6 +178,7 @@ struct ael_extension char *hints; int regexten; int is_switch; + int has_switch; struct ast_context *context; |