diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-07-23 19:51:41 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-07-23 19:51:41 +0000 |
commit | 55b1ee298e926c594f45456e5afbc25c79e3889b (patch) | |
tree | c9c73917bfd120da30c16650000c7296781fae50 /apps/app_zapras.c | |
parent | d8d1b6c8f242dbc1be319ceef5442378a5bda885 (diff) |
Merge the dialplan_aesthetics branch. Most of this patch simply converts applications
using old methods of parsing arguments to using the standard macros. However, the big
change is that the really old way of specifying application and arguments separated by
a comma will no longer work (e.g. NoOp,foo|bar). Instead, the way that has been
recommended since long before 1.0 will become the only method available (e.g. NoOp(foo,bar).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_zapras.c')
-rw-r--r-- | apps/app_zapras.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_zapras.c b/apps/app_zapras.c index 5456ffb29..95b34d820 100644 --- a/apps/app_zapras.c +++ b/apps/app_zapras.c @@ -68,7 +68,7 @@ static char *descrip = "The channel must be a clear channel (i.e. PRI source) and a Zaptel\n" "channel to be able to use this function (No modem emulation is included).\n" "Your pppd must be patched to be zaptel aware. Arguments should be\n" -"separated by | characters.\n"; +"separated by , characters.\n"; #define PPP_MAX_ARGS 32 @@ -122,10 +122,10 @@ static pid_t spawn_ras(struct ast_channel *chan, char *args) /* And all the other arguments */ stringp=args; - c = strsep(&stringp, "|"); + c = strsep(&stringp, ","); while(c && strlen(c) && (argc < (PPP_MAX_ARGS - 4))) { argv[argc++] = c; - c = strsep(&stringp, "|"); + c = strsep(&stringp, ","); } argv[argc++] = "plugin"; |