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.
9 lines
283 B
9 lines
283 B
2 years ago
|
#!/bin/bash
|
||
|
|
||
|
sleep 5
|
||
|
asterisk -rx "agent logoff Agent/$1 soft"
|
||
|
asterisk -rx "queue remove member Agent/$1 from $2"
|
||
|
echo "" >> /var/log/asterisk/logoff_agente.log
|
||
|
date >> /var/log/asterisk/logoff_agente.log
|
||
|
echo "AGENTE: $1 - DAC:$2 - STATUS:$3">> /var/log/asterisk/logoff_agente.log
|