forked from Claudio/integracao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
374 B
19 lines
374 B
2 years ago
|
<?php
|
||
|
|
||
|
include "IPCall.php";
|
||
|
|
||
|
$ipcall = new IPCall();
|
||
|
|
||
|
$protocolo = $agi->get_variable('PROTOCOLO_ANS', true);
|
||
|
$clientid = $agi->get_variable('CLIENTID', true);
|
||
|
|
||
|
$ipcall->log()->debug("enviarSMS | " . print_r([
|
||
|
'protocolo' => $protocolo,
|
||
|
'clientid' => $clientid
|
||
|
], true));
|
||
|
|
||
|
if($protocolo && $clientid){
|
||
|
$ipcall->sendsms($clientid, $numero, $protocolo);
|
||
|
}
|
||
|
|
||
|
?>
|