diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-06 14:37:52 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-06 14:37:52 +0000 |
commit | 488b06231dca8acfae2cff0ecf1992f4195faa86 (patch) | |
tree | 3b9dce1b26a5e2fd65fe13c88d2e7bbdddc852b9 /apps/app_externalivr.c | |
parent | e1e7b35fee547a3134a333bc9d80a267f9b9d5af (diff) |
(closes issue #10381)
Reported by: yehavi
Use the filename we parsed using the standard parsing when launching the application specified to ExternalIVR.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78168 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_externalivr.c')
-rw-r--r-- | apps/app_externalivr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c index 31cdafd0a..2ebaead0c 100644 --- a/apps/app_externalivr.c +++ b/apps/app_externalivr.c @@ -250,7 +250,6 @@ static int app_exec(struct ast_channel *chan, void *data) int res = -1; int gen_active = 0; int pid; - char *argv[32]; char *buf, *command; FILE *child_commands = NULL; FILE *child_errors = NULL; @@ -325,8 +324,8 @@ static int app_exec(struct ast_channel *chan, void *data) dup2(child_stderr[1], STDERR_FILENO); for (i = STDERR_FILENO + 1; i < 1024; i++) close(i); - execv(argv[0], argv); - fprintf(stderr, "Failed to execute '%s': %s\n", argv[0], strerror(errno)); + execv(args.cmd[0], args.cmd); + fprintf(stderr, "Failed to execute '%s': %s\n", args.cmd[0], strerror(errno)); _exit(1); } else { /* parent process */ |