Originate call?

could someone please give me some idea what might be wrong with following…

$asm = new AGI_AsteriskManager();
if($asm->connect())
{
$call = $asm->send_request(‘Originate’,
array(‘Channel’=>“0123456789”, // let’s say 0123456789 is a GSM number i want to call
’Context’=>‘default’,
‘Priority’=>1
));
$asm->disconnect();
}

it just hangs-up right away, no call made.
it doesn’t work even if i try to add ‘Async’=>0, nor if i add ‘Sync’=>1

In the “channel” parameter you’ve to put a destination number like for Dial(), so use “channel type/number”, for example “SIP/01234567890” or “Zap/g0/01234567890”, see voip-info.org/wiki/view/Aste … +Originate for more.

Cheers.

Marco Bruni
www.marcobruni.net