AGI Originate

dlopez
Joined: Sun 24 of Nov, 2013

AGI Originate

Posted:Sun 24 of Nov, 2013 (21:34 UTC)
Hi,
I'm new in Asterix and PBX in general. I'm trying to create a php script using AGI_AsteriskManager(), to place a call to a Queue and when some of the logged-in agents picks up the phone, to place an external call.
So far, this works perfect but it only calls SIP/303 extension:
$ami->originate("SIP/303", "111111111", "from-internal", "1",null,null,null, "111111111");
This one calls both at the same time:
$ami->originate("Local/400@from-internal", "111111111", "from-internal", "1",null,null,null, "111111111");

Any help will be much appreciate.
Thanks