aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 05:46:31 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 05:46:31 +0000
commita43b9a8453ebbf9148f4ec436731271ad160d4c2 (patch)
treef3cd4ed15632937ecdbfb6ba9ca172e7b0b6a906 /main
parent577c7f89f0f597080d9ca334ccce95daa7c5169b (diff)
Merged revisions 188210 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r188210 | tilghman | 2009-04-14 00:45:13 -0500 (Tue, 14 Apr 2009) | 2 lines As suggested by Russell, warn users when their dialplan arguments contain pipes, but not commas. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@188212 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 b4f6599d9..59e4a3697 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -949,6 +949,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);