aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 05:45:13 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 05:45:13 +0000
commit6ba9bf6f7a96d56b93e8dfe5369695b28eb0a135 (patch)
tree2f75b9169297bef2b7fac95995e435a25fd2a273 /main
parent581263ecbf3262cae8b5a2b94192cce5a90c5684 (diff)
As suggested by Russell, warn users when their dialplan arguments contain pipes, but not commas.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@188210 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index e2796be5e..b6a80b8fb 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1339,6 +1339,11 @@ int pbx_exec(struct ast_channel *c, /*!< Channel */
c->data = data;
if (app->module)
u = __ast_module_user_add(app->module, c);
+ if (!ast_strlen_zero(data) && strchr(data, '|') && !strchr(data, ',')) {
+ ast_log(LOG_WARNING, "The application delimiter is now the comma, not "
+ "the pipe. Did you forget to convert your dialplan? (%s(%s))\n",
+ app->name, (char *) data);
+ }
res = app->execute(c, S_OR(data, ""));
if (app->module && u)
__ast_module_user_remove(app->module, u);