On 09/13/2010 06:01 PM, Carlos Chavez wrote:
On Mon, 2010-09-13 at 17:48 +0200, Jonas Kellens wrote:
Hello,
can anyone please tell me how I can give arguments to my AGI script ?!
I think asterisk sees the name of the AGI + the channel as one
filename, and of course this file then does not exist.
In Asterisk 1.4 you use the | (pipe) and in 1.6 you use a , (coma).
So:
runme.agi|parameter
Result :
[Sep 13 20:10:27] WARNING[19929]: pbx.c:1344 pbx_exec: The application
delimiter is now the comma, not the pipe. Did you forget to convert
your dialplan? (AGI(cleanpickup.agi|SIP/329909007906-0000017a))
[Sep 13 20:10:27] WARNING[19929]: res_agi.c:886 launch_script: Failed to
execute
'/var/lib/asterisk/agi-bin/cleanpickup.agi|SIP/329909007906-0000017a':
File does not exist.
or
runme.agi,parameter
[Sep 13 20:14:59] WARNING[19965]: app_macro.c:302 _macro_exec: No such
context 'macro-SIP/329909007906-0000017a' for macro
'SIP/329909007906-0000017a'
[Sep 13 20:14:59] -- Launched AGI Script
/var/lib/asterisk/agi-bin/cleanpickup.agi
[Sep 13 20:14:59] opruimenpickup.agi: Failed to execute
'/var/lib/asterisk/agi-bin/cleanpickup.agi': Permission denied
How can this work for you ?! Do you have an example ?!
Or Asterisk says it is not the correct delimiter, or it sees my argument
as a macro...
Some feedback please !
Jonas.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users