[asterisk-commits] file: trunk r78168 - /trunk/apps/app_externalivr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 6 09:37:53 CDT 2007


Author: file
Date: Mon Aug  6 09:37:52 2007
New Revision: 78168

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78168
Log:
(closes issue #10381)
Reported by: yehavi
Use the filename we parsed using the standard parsing when launching the application specified to ExternalIVR.

Modified:
    trunk/apps/app_externalivr.c

Modified: trunk/apps/app_externalivr.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_externalivr.c?view=diff&rev=78168&r1=78167&r2=78168
==============================================================================
--- trunk/apps/app_externalivr.c (original)
+++ trunk/apps/app_externalivr.c Mon Aug  6 09:37:52 2007
@@ -250,7 +250,6 @@
 	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 @@
 		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 */




More information about the asterisk-commits mailing list