<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/13/2010 06:01 PM, Carlos Chavez wrote:
<blockquote cite="mid:1284393698.2819.14.camel@cursor.telecomabmex.com"
type="cite">
<pre wrap="">On Mon, 2010-09-13 at 17:48 +0200, Jonas Kellens wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">        In Asterisk 1.4 you use the | (pipe) and in 1.6 you use a , (coma).
So:
runme.agi|parameter
</pre>
</blockquote>
<br>
Result :<br>
<br>
[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|<font>SIP/329909007906-0000017a</font>))<br>
[Sep 13 20:10:27] WARNING[19929]: res_agi.c:886 launch_script: Failed
to execute '/var/lib/asterisk/agi-bin/cleanpickup.agi|<font>SIP/329909007906-0000017a</font>':
File does not exist.<br>
<br>
<br>
<blockquote cite="mid:1284393698.2819.14.camel@cursor.telecomabmex.com"
type="cite">
<pre wrap="">or
runme.agi,parameter
</pre>
</blockquote>
<br>
[Sep 13 20:14:59] WARNING[19965]: app_macro.c:302 _macro_exec: No such
context 'macro-<font>SIP/329909007906-0000017a</font>' for macro '<font>SIP/329909007906-0000017a</font>'<br>
[Sep 13 20:14:59] -- Launched AGI Script
/var/lib/asterisk/agi-bin/cleanpickup.agi<br>
[Sep 13 20:14:59] opruimenpickup.agi: Failed to execute
'/var/lib/asterisk/agi-bin/cleanpickup.agi': Permission denied<br>
<br>
<br>
<br>
How can this work for you ?! Do you have an example ?!<br>
<br>
Or Asterisk says it is not the correct delimiter, or it sees my
argument as a macro...<br>
<br>
Some feedback please !<br>
<br>
<br>
<br>
Jonas.<br>
</body>
</html>