AGI passing parameters

I upgrade my 1.4 box to 1.6.0beta5

I was using DeadAGI and changed script to AGI

How do you pass a parameter as in 1.4
this worked in 1.4
exten => _1NXXNXXXXXX,1,Answer
exten => _1NXXNXXXXXX,2,Wait(2)
exten => _1NXXNXXXXXX,3,Noop(Hey !!! TEST CALLING !!!)
exten => _1NXXNXXXXXX,4,DEADAGI(a2billing.php|2)
exten => _1NXXNXXXXXX,5,Wait(2)
exten => _1NXXNXXXXXX,6,Hangup

I also tried
exten => _1NXXNXXXXXX,4,AGI(a2billing.php|2)

I get the follow[Mar 9 15:00:38] WARNING[24421] res_agi.c: Failed to execute ‘/var/lib/asterisk/agi-bin/a2billing.php|2’: File does not exist.

If i drop the |2 the file is found.

How do I pass the parameter now?

You can set a channel variable and then get it using the ‘get variable’ command within your AGI.

Matthew


Watch for our new website coming soon to asterisketc.com

Are you saying that you can not pass a parameter to a script any longer? The script is not my script and it expects a parameter.

Change the pipe delimiter to a comma.