[AsteriskBrasil] Click To Call

Wendell Silva wendbandeira em gmail.com
Terça Março 30 13:00:47 BRT 2010


Bom depois de muito pesquisar, tai um script que funcionou perfeitamente
ahhh e muito obrigado pela GRANDE atenção dos jedi, que sempre apontam para
o google.

<?
    if( isset($_GET["ligar"]) ) {

    include "AstMan.php";

    $ast = new AstMan();

    $ast->Login( "localhost", "admin", "amp111" );

    echo "<pre>";
    echo $ast->sendCommand("Originate", array(
        "Channel" => "SIP/XXXXX",
        "CallerID" => $_GET["numero"],
        "Account" => "8458591895",
        "Context" => "a2billing-webcall",
        "Exten" => $_GET["numero"],
        "Priority" => "1"
        ));
    echo "</pre>";

    }

?>
<html>
<body>
Click to Call
<form action="index.php">
    <input type="hidden" name="ligar" value="1">
           Numero:
          <input type="text" name="numero" value="<?= @$_GET["numero"] ?>">
        <input type="button" value="Ligar" onclick="submit()">
</form>

</body>
</html>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20100330/1e89d11b/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil