|
|
|
@ -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 |
|
|
|
|