Iām using PAMI to originate a call, it should make the call from local extension to customer number it works fine but the problem is that when an I execute the script a call make (from extension to the customer ) when the customer picks this call the problem is: the extension it rings (incoming call)
it should make automatically (when a customer pick the call the channel should make directly without ringing the extension)
this is my code
$originateMsg = new OriginateAction("DAHDI/g1/0603532326");
$originateMsg->setContext("from-internal");
$originateMsg->setExtension("4022");
$originateMsg->setPriority(1);
$originateMsg->setTimeout(0);
$originateMsg->setAsync(false);
var_dump($a->send($originateMsg));