Need help with spooled outgoing call: App: AGI not parsed

I’ve been unable to locate any help with this so far.

I’m creating call files to drop in spool/asterisk/outgoing. These files run my agi script which needs some arguments for the call handling. So an example call file is:

Channel: IAX2/extra-info
CallerID: 5555551212
Application: AGI
Data: myAgiScript, arg1 arg2 arg3

The problem I seem to be having is that the call spooler does not interpret Data the same way as the dialplan handler. It doesn’t see the comma after myAgiScript and tries to instantiate the file executable file named. “myAgiScript, arg1 arg2 arg3”

Has anybody seen this or otherwise knows the correct script to that the initiated script file name is “myAgiScript” and the arguments are passed to this script?


Seems that there’s no direct solution. However, for those that are interested, I added a SETVAR to the call file to pass the parameters and then had my agi script start by getting the variable.