aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-24 15:41:43 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-24 15:41:43 +0000
commit4ac221c9bdb8a56b6deab4c4622beed22ef0c76d (patch)
treeeacf5761cbbf2559e08bf2ca1ed55835898b4238 /main
parent43bf707b3de6679543a7bf2bfc6c00d0ef728b5e (diff)
Make the deprecation warning inline with the code, instead of only in documentation (closes issue #10549)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80747 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 11b614583..f3dcea8c7 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -5857,10 +5857,15 @@ int pbx_builtin_setvar(struct ast_channel *chan, void *data)
/* check for a trailing flags argument */
if ((argc > 1) && !strchr(argv[argc-1], '=')) {
argc--;
- if (strchr(argv[argc], 'g'))
+ if (strchr(argv[argc], 'g')) {
+ ast_log(LOG_WARNING, "The use of the 'g' flag is deprecated. Please use Set(GLOBAL(foo)=bar) instead\n");
global = 1;
+ }
}
+ if (argc > 1)
+ ast_log(LOG_WARNING, "Setting multiple variables at once within Set is deprecated. Please separate each name/value pair into its own line.\n");
+
for (x = 0; x < argc; x++) {
name = argv[x];
if ((value = strchr(name, '='))) {