repositório com os arquivos utilizados para integração entre o sistema SimplesIP e diversos sistemas.
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.

33 lines
908 B

3 years ago
<?php
require_once 'Provedor.php';
$registros = array(
"id" => '',
"reg_ura" => $ura,
"reg_tronco" => $tronco,
"reg_uniqueid" => $uid,
"reg_id_metodo" => $idMetodo,
"reg_uniqueid" => $uid,
"reg_uniqueid_old" => $uidOld,
"reg_fone" => $numero,
"reg_status_exec" => '1',
"reg_inicio" => date());
$pvd = new Provedor();
$pvd->db()->setRegistros($registros);
if (CONF_AUDIO_ERROR) {
$pvd->db()->setIdAudioError(CONF_AUDIO_ERROR);
}
$documento = $pvd->agi()->get_variable("URA", true);
if($pvd->identificarDocumento($documento)){
$pvd->agi()->exec_goto($pvd->db()->getAnuncio('INT_CADASTRO_SUCESSO_PROVEDORES'));
} else {
$pvd->agi()->exec_goto($pvd->db()->getAnuncio('INT_CADASTRO_FALHA_PROVEDORES'));
}
$pvd->db()->atualizaIntegracao();