I've two trunks. I can specify route in outbound dialplan. But I want to do that from agi script. I'm using phpagi.php and custom code.
I tried with
$agi->exec('DIAL', "SIP/[email protected]
But call is going through first route always.
Am I doing anything wrong?