Cannot specify interpreter path in AGI call

Bug #1182947 reported by Ariel Wainer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
asterisk (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

When trying to call an AGI script like this

exten => 1234,n,AGI(/path/to/interpreter /path/to/script,args)

Asterisk says:
 WARNING[19529]: res_agi.c:1621 launch_script: Failed to execute '/path/to/interpreter /path/to/script': File does not exist.

This is not serious, as in most cases it can be worked around by specifying the interpreter path on the script first line. It could however pose a problem for Java, where de interpreter is not usually placed on a standard path.
This happens on :1.8.10.1~dfsg-1ubuntu1.

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

This is the sort of thing that would be best fixed upstream - it's probably best not to make distro-specific changes in this area. Have you considered testing for this problem in the original upstream release and reporting the problem to Asterisk's bug tracker?

Changed in asterisk (Ubuntu):
importance: Undecided → Wishlist
tags: added: needs-upstream-report
Revision history for this message
Ariel Wainer (ariel-cafelug) wrote :

I agree, it should be fixed upstream, I'll test it on the latest version and report to asterisk bugtracker.

Revision history for this message
Ariel Wainer (ariel-cafelug) wrote :

Asterisk people didn't agree this is a bug: https://issues.asterisk.org/jira/browse/ASTERISK-21812
Should we close this one as well?

Revision history for this message
Robie Basak (racb) wrote :

Thanks for following this up with upstream. Marking Invalid in line with upstream's decision.

Changed in asterisk (Ubuntu):
status: New → Invalid
Revision history for this message
Ariel Wainer (ariel-cafelug) wrote :

Just for the future peoplen finding this issue, this works:
Instead of:
exten => 1234,n,AGI(/path/to/interpreter /path/to/script,args)
Do:
exten => 1234,n,AGI(/path/to/interpreter,/path/to/script,args)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.