diff options
author | Steve Murphy <murf@digium.com> | 2008-08-19 15:59:12 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2008-08-19 15:59:12 +0000 |
commit | 04795d963f633694a8e5eccde3d3baf8b3d87d8d (patch) | |
tree | 2505d6c6c9a14bce3db2ae69e06120cbe8f30134 /main/pbx.c | |
parent | 4d9a38bc3fabc71b75ac107ec2d26873878a3af9 (diff) |
These changes are in regards to bug 13249, where users are being surprised by the changes made
to the Set app in trunk/1.6.x, as they come from the 1.4 world. They are only bitten if
they write their AEL dialplan in the 1.4 world, and then carry it over to a trunk/1.6.x
installation where a "make samples" was executed, or where they hand-edited the
asterisk.conf file and added the [compat] category with app_set = 1.6 (or higher).
(this commit does not totally solve 13249, at least not yet)
The change involves issueing a single warning while the AEL file is loading, if:
1. app_set is present in the config file, and set to 1.6 or higher.
2. there are double quotes in an assignment statement (eg x = "hi there";)
3. the warning was not already issued.
The standalone app, aelparse, does not (yet) issue this warning. I'd have to
have it read in the asterisk.conf file, and that's a bit of hassle. I'll add
it if users request it, tho.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@138815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 2649ddecc..db4a79552 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -669,6 +669,11 @@ static struct pbx_builtin { "channel. If the variable name is prefixed with __, the variable will be\n" "inherited into channels created from the current channel and all children\n" "channels.\n" + "Compatibility note: If (and only if), in /etc/asterisk/asterisk.conf, you have a [compat]\n" + "category, and you have app_set = 1.6 under that, then the behavior of this\n" + "app changes, and does not strip surrounding quotes from the right hand side\n" + "as it did previously in 1.4. The app_set = 1.6 is only inserted if 'make samples'\n" + "is executed, or if the users inserts this by hand into the asterisk.conf file.\n" }, { "MSet", pbx_builtin_setvar_multiple, @@ -681,7 +686,8 @@ static struct pbx_builtin { "inherited into channels created from the current channel and all children\n" "channels.\n\n" "MSet behaves in a similar fashion to the way Set worked in 1.2/1.4 and is thus\n" - "prone to doing things that you may not expect. Avoid its use if possible.\n" + "prone to doing things that you may not expect. For example, it strips surrounding\n" + "double-quotes from the right-hand side (value). Avoid its use if possible.\n" }, { "SetAMAFlags", pbx_builtin_setamaflags, |