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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 11 09:48:25 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:48 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. 















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

---------------------------------------------------------------------- 
 (0094740) jsmith (manager) - 2008-11-11 09:48
 http://bugs.digium.com/view.php?id=13874#c94740 
---------------------------------------------------------------------- 
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) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-11 09:48 jsmith         Note Added: 0094740                          
======================================================================




More information about the asterisk-bugs mailing list