From 8b43221cb453119a272bff013ba04fe83b6b7951 Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 4 Aug 2024 03:56:47 -0400 Subject: [PATCH] Usar ID_APP para id --- admin/cadAnuncios.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/cadAnuncios.php b/admin/cadAnuncios.php index 42ce0262..4b33c303 100644 --- a/admin/cadAnuncios.php +++ b/admin/cadAnuncios.php @@ -33,7 +33,7 @@ function salvarAnuncio ($nome, $som_ura, $teste, $opcao, $acaoDest, $org_id) { CommandAsterisk2($dbcon, 'TIPO', "$org_id$last_id", "ANUNCIO"); CommandAsterisk2($dbcon, 'NOME_APP', "$org_id$last_id", "$nome"); CommandAsterisk2($dbcon, 'NUMERO', "$org_id$last_id", "_a$org_id$last_id"); - CommandAsterisk2($dbcon, 'ID', "$org_id$last_id", "$last_id"); + CommandAsterisk2($dbcon, 'ID_APP', "$org_id$last_id", "$last_id"); pg_query($dbcon, "commit"); @@ -106,7 +106,7 @@ function salvarAnuncio ($nome, $som_ura, $teste, $opcao, $acaoDest, $org_id) { CommandAsterisk2($dbcon, 'TIPO', "$org_id$id", "ANUNCIO"); CommandAsterisk2($dbcon, 'NOME_APP', "$org_id$id", "$nome"); CommandAsterisk2($dbcon, 'NUMERO', "$org_id$id", "_a$org_id$id"); - CommandAsterisk2($dbcon, 'ID', "$org_id$id", "$id"); + CommandAsterisk2($dbcon, 'ID_APP', "$org_id$id", "$id"); } //gera arquivos e executa o reload dos dados no asterisk