9,12 → 9,14 |
$dst = $_POST['dst']; |
|
try { |
$ast = new Net_AsteriskManager(array('server' => $mgr_host, 'port' => $mgr_port)); |
$ast = new Net_AsteriskManager(array( |
'server' => $g_config['mgr_host'], |
'port' => $g_config['mgr_port'])); |
|
$ast->connect(); |
$ast->login($mgr_user, $mgr_password); |
$ast->login($g_config['mgr_user'], $g_config['mgr_password']); |
|
$ast->originateCall($dst, "$mgr_channel/$src", $mgr_context, $src); |
$ast->originateCall($dst, $g_config['mgr_channel'] . "/$src", $g_config['mgr_context'], $src); |
$g_display->add_text("A call from $src to $dst is originated"); |
} |
catch(PEAR_Exception $e) { |