Browse Source

Usar ID_APP para id

1.9
bruno 2 months ago
parent
commit
8b43221cb4
  1. 4
      admin/cadAnuncios.php

4
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, 'TIPO', "$org_id$last_id", "ANUNCIO");
CommandAsterisk2($dbcon, 'NOME_APP', "$org_id$last_id", "$nome"); CommandAsterisk2($dbcon, 'NOME_APP', "$org_id$last_id", "$nome");
CommandAsterisk2($dbcon, 'NUMERO', "$org_id$last_id", "_a$org_id$last_id"); 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"); 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, 'TIPO', "$org_id$id", "ANUNCIO");
CommandAsterisk2($dbcon, 'NOME_APP', "$org_id$id", "$nome"); CommandAsterisk2($dbcon, 'NOME_APP', "$org_id$id", "$nome");
CommandAsterisk2($dbcon, 'NUMERO', "$org_id$id", "_a$org_id$id"); 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 //gera arquivos e executa o reload dos dados no asterisk

Loading…
Cancel
Save