[asterisk-bugs] [Asterisk 0013874]: AGI Script 'Failed to execute'

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 11 09:28:51 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13874 
====================================================================== 
Reported By:                SirWhit
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13874
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-11-11 09:26 CST
Last Modified:              2008-11-11 09:28 CST
====================================================================== 
Summary:                    AGI Script 'Failed to execute'
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. 















====================================================================== 

---------------------------------------------------------------------- 
 (0094739) SirWhit (reporter) - 2008-11-11 09:28
 http://bugs.digium.com/view.php?id=13874#c94739 
---------------------------------------------------------------------- 
The stat function I described above currently located at line 623 is in
file res_agi.c 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-11 09:28 SirWhit        Note Added: 0094739                          
======================================================================




More information about the asterisk-bugs mailing list