Asterisk AMI Originate with Agent

Hello,

I’m using PHP PAMI library to communicate to Asterisk AMI. I’m able to make a Call and everything works fine except the fact that the extension I’m using to call has a logged agent, and when I make a call from the softphone I can see the call in queue_log. When I use AMI to original call from the same extension the softphone rings I answer and start ringing the destination, but I can’t see this call in the queue_log I only can see in CDR.

        $originateAction = new OriginateAction("PJSIP/{$sourceExtension}");
        $originateAction->setExtension("{$DestinationNumber}");
        $originateAction->setContext('default'); // 
        $originateAction->setPriority(1); //
        $originateAction->setCallerId("{$sourceExtension}");

Any tip for this problem ?

Thanks !

well are they both using the same context default
als is your destination a Queue

can you cost the console out for both calls (as text)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.