Monthly Archives: August 2016

FREEPBX DEVICE AMPUSER


asterisk -rx “database show” | grep “AMPUSER” | grep “device” | awk ‘{print $1}’ | cut -d’/’ -f3,4 > AMPUSER

asterisk -rx “database show” | grep “DEVICE” | grep -w “user” | awk ‘{print $1}’ | cut -d’/’ -f3,4 > DEVICE

 

for i in `cat AMPUSER`; do
echo $i;
/usr/sbin/asterisk -rx “database del AMPUSER $i”
done
for i in `cat DEVICE`; do
echo $i;
/usr/sbin/asterisk -rx “database del DEVICE $i”
done

amportal restart

 

Continue reading

Advertisements
shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: