How do I make an outgoing call
You shall use the Emerginov SDK and invoke the Call method. See PHP SDK description (User manual) for details.
A basic example can be described as follow:
<?php
require_once ("Emerginov.php");
require_once ("passwords.php");
echo "Test make call";
if (isset($_GET['numero'])){
$Emerginov = new Emerginov($api_login, $api_password);
if (isset($_GET['numero2'])) $ret = $Emerginov->Call($_GET['numero'], $_GET['numero2']);
else $ret = $Emerginov->Call($_GET['numero']);
echo "<pre>";
print_r($ret);
echo "</pre>";
}
?>
<form method='get' action="makecall.php">
<input type="text" name="numero" value="+33" />
<input type="text" name="numero2" value="" />
<input type="submit" value="Appel!" />
</form>
require_once ("Emerginov.php");
require_once ("passwords.php");
echo "Test make call";
if (isset($_GET['numero'])){
$Emerginov = new Emerginov($api_login, $api_password);
if (isset($_GET['numero2'])) $ret = $Emerginov->Call($_GET['numero'], $_GET['numero2']);
else $ret = $Emerginov->Call($_GET['numero']);
echo "<pre>";
print_r($ret);
echo "</pre>";
}
?>
<form method='get' action="makecall.php">
<input type="text" name="numero" value="+33" />
<input type="text" name="numero2" value="" />
<input type="submit" value="Appel!" />
</form>