Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

lunes, 11 de mayo de 2015

DTMF Script


DID to call 1 206-279-5567.


 
 ###################
 Dial Plan


[dtmf_call]
exten=>_x.,1,Answer()
same=>n,Set(CODE=${SHELL(cat /var/www/code.conf)})
same=>n,verbose( this is the ${CODE})
same=>n,Wait(1)
same=>n,SendDTMF(${CODE:0:1})
same=>n,SendDTMF(${CODE:1:1})








#### Web Script ###

<?php

echo "<center><h2>DID to  call   1 206-279-5567. <h2></center>";


// asignar permisos chmod 777 /var/www/code.conf

$myfile = fopen("/var/www/code.conf", "w") or die("Unable to open file!");
$code=$_POST[code];
fwrite($myfile,$code);
fclose($myfile);
echo $code;
?>
<body>

    <div class="login-help">
      <p>Click here to <a href="google.php"> Go to the main panel </a>.</p>
    </div>
  <section class="container">
    <div class="login">
      <h1>Add DTMF</h1> <form enctype="multipart/form-data" action="google.php" method="POST" onsubmit="return val(this)">


        <p><input type="text" name="code" value="" placeholder="code"></p>


    <p class="submit"><input type="submit" name="submit" value="Done"></p>

      </form>
    </div>


  </section>

No hay comentarios:

Publicar un comentario