[asterisk-bugs] [JIRA] (ASTERISK-21812) Whitespace not escaped correctly on AGI()

Michael L. Young (JIRA) noreply at issues.asterisk.org
Thu May 23 17:36:01 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206770#comment-206770 ] 

Michael L. Young commented on ASTERISK-21812:
---------------------------------------------

This is not the proper way to run an AGI application.

Add "#!/usr/bin/python" (or whatever the path to the python binary) to the top of your python script.  Make sure the permissions are set correctly.

For future support questions, please check out the forum, mailing list or irc channel for help. (http://www.asterisk.org/community)

Thanks
                
> Whitespace not escaped correctly on AGI()
> -----------------------------------------
>
>                 Key: ASTERISK-21812
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21812
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: . I did not set the category correctly.
>    Affects Versions: 11.4.0
>         Environment: Ubuntu server 12.04 server, using asterisk-latest from the tarball as well as the package.
>            Reporter: Ariel Wainer
>            Severity: Trivial
>
> When I try to call an AGI script like this:
> exten => 12345,2,AGI(/usr/bin/python /usr/local/bin/test.py)
> It doesn't work, it says: 
>  WARNING[30174][C-00000003]: res_agi.c:1681 launch_script: Failed to execute '/usr/bin/python /usr/local/bin/test.py': File does not exist.
> Both the binary and the script work and asterisk has the right permissions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list