forked from SimplesIP/pabx-app
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.
14 lines
339 B
14 lines
339 B
2 years ago
|
#!/bin/bash
|
||
|
. /var/lib/asterisk/scripts/callcenter/bd
|
||
|
|
||
|
TBL_AGENTES="pbx_supervisor_agentes"
|
||
|
|
||
|
if [ -z "$1" -o -z "$2" -o -z "$3" ]
|
||
|
then
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
export PGPASSWORD=$SENHA
|
||
|
psql -c "UPDATE $TBL_AGENTES SET status = 'ORIGINANDO' ,canal = '$1',duracao = now(),origem_destino = '$3' WHERE matricula = '$2'" -h $HOST_DB -d $BASE_DB -U $USUARIO
|
||
|
|