diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-04-14 05:45:13 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-04-14 05:45:13 +0000 |
commit | a74fda63fd66d9e579779dc96bc0a05d77636591 (patch) | |
tree | 2f75b9169297bef2b7fac95995e435a25fd2a273 /main/pbx.c | |
parent | c5719a495c2e8f40605aab030bf14b399a0cca67 (diff) |
As suggested by Russell, warn users when their dialplan arguments contain pipes, but not commas.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 5 |
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); |