[Home]

Summary:ASTERISK-13047: AGI Script 'Failed to execute'
Reporter:Whit Thiele (sirwhit)Labels:
Date Opened:2008-11-11 09:26:18.000-0600Date Closed:2011-06-07 14:07:21
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_agi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I have a test system where AGI scripts will execute with the 1.4 branch. Upon upgrading to trunk, they no longer run. The scripts are getting caught at this section in launch_script() (line 623 of current trunk):

/* Before even trying let's see if the file actually exists */
if (stat(script, &st)) {
   ast_log(LOG_WARNING, "Failed to execute '%s': File does not exist.\n", script);
   return AGI_RESULT_NOTFOUND;
}


I'm passing in variables, CLI output for my example looks like:

Failed to execute '/var/lib/asterisk/agi-bin/app_check.agi|5555481212|9995551212|8885551212|2': No such file or directory

The file (app_check.agi) does exist, and permissions are fine - and it works with the 1.4 version so I'm not sure why AGI is failing here.
















****** ADDITIONAL INFORMATION ******

System:

Kernel:
Linux localhost.localdomain 2.6.24.4-64.fc8 #1 SMP Tues Nov 11 09:15:49 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

gcc version:
gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)
Comments:By: Whit Thiele (sirwhit) 2008-11-11 09:28:51.000-0600

The stat function I described above currently located at line 623 is in file res_agi.c

By: Jared Smith (jsmith) 2008-11-11 09:48:24.000-0600

Can you please try again after replacing the pipes with commas?  In other words, make it look like:

AGI(/var/lib/asterisk/agi-bin/app_check.agi,5555481212,9995551212,8885551212,2)

By: Whit Thiele (sirwhit) 2008-11-11 10:38:25.000-0600

Changing the pipes to commas solves the problem. This bug report can be closed.

By: Jeff Peeler (jpeeler) 2008-11-11 10:45:13.000-0600

In the future, for migration issues from 1.4 to 1.6, please read UPGRADE.txt.