aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-09-03 14:01:27 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-09-03 14:01:27 +0000
commitc692e13068d7fecfdd235c565662cdb9f3dab58a (patch)
tree66b95c7ea4df7d6dbbdf67200146844c8eab4ab9 /main
parent706602fc520d237c45cf0b17c5b55a681c879263 (diff)
In these changes, I have added some explanation
of changes to the Set and MSet apps, so people aren't so shocked and surprised when they upgrade from 1.4 to 1.6. Also, for the sake of those upgrading from 1.4 to 1.6 with AEL, I provide automatic support for the "old" way of using Set(), that still does the exact same old thing with quotes and backslashes and so on as 1.4 did, by having AEL compile in the use of MSet() instead of Set(), everywhere it inserts this code. But, if the app_set var is set to 1.6 or higher, it uses the "new", non-evaluative Set(). This only usually happens if the user manually inserts this into the asterisk.conf file, or runs the "make samples" command. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140824 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index bfa61c96b..3ed9536b5 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -673,7 +673,12 @@ static struct pbx_builtin {
"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"
+ "is executed, or if users insert this by hand into the asterisk.conf file.\n"
+ "/nThe advantages of not stripping out quoting, and not caring about the\n"
+ "separator characters (comma and vertical bar) were sufficient to make these\n"
+ "changes in 1.6. Confusion about how many backslashes would be needed to properly\n"
+ "protect separators and quotes in various database access strings has been greatly\n"
+ "reduced by these changes.\n"
},
{ "MSet", pbx_builtin_setvar_multiple,
@@ -687,7 +692,9 @@ static struct pbx_builtin {
"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. For example, it strips surrounding\n"
- "double-quotes from the right-hand side (value). Avoid its use if possible.\n"
+ "double-quotes from the right-hand side (value). If you need to put a separator\n"
+ "character (comma or vert-bar), you will need to escape them by inserting a backslash\n"
+ "before them. Avoid its use if possible.\n"
},
{ "SetAMAFlags", pbx_builtin_setamaflags,