Thomas,
this code block should work for your Originate case.
This code block will dial a local channel where actual leg 1 number is
dialed. On Answer of leg1, the leg2 is called.
-
require_once('phpagi-2.20/phpagi-asmanager.php');
$asm =
Hello,
I want to call an phone and if phone picked up I want to ring another phone.
Or I want to connect to an running channel and then call another phone or move
to an ConfBridge
Iam using PHP
$channel = 'IAX2/556-1696';
or $channel = 'SIP/0019736363636@outbound.patton';
$exten = '';