AGI get_variable not saving variable...?

I run the php script from the command line, it contains:
$asm->Originate(SIP/305, ‘’, ‘’, ‘’, ‘AGI’, ‘test.php’, ‘’, ‘’, ‘var1=41283’);

It Originates the call to test.php, which has:

#!/usr/bin/php -q

<?php set_time_limit(0); require('phpagi.php'); $agi = new AGI(); $agi->answer(); $matt = $agi->get_variable('var1'); var_dump($matt); Now when it runs test.php, i get this in the cli with agi debug on: AGI Rx <> 200 result=0 AGI Rx <> 200 result=1 (41283) AGI Rx <> 510 Invalid or unknown command AGI Rx < AGI Tx >> 510 Invalid or unknown command AGI Rx <> 510 Invalid or unknown command AGI Rx < AGI Tx >> 510 Invalid or unknown command AGI Rx <> 510 Invalid or unknown command AGI Rx < AGI Tx >> 510 Invalid or unknown command AGI Rx <> 510 Invalid or unknown command AGI Rx <> 510 Invalid or unknown command The unknown command lines are fine, ignore that. (ive tries verbose($matt['data']) and alot of other ways with the same blank result) See it gets var1, and shows the correct answer on the next line. But when I do vardump($matt); it is no where to be seen. Ive tried so many ways to do this, what could be going wrong???

tried this on an asterisk 1.4 server tonite, same thing…