PBX in a Flash Version 1.3
Operating system CentOS Linux 5.2
FreePBX Base Version: 2.7.0.0
PROBLEM:
We are adjusting the network, and I had to change from one network range to another for FreePBX Server and all of the IP phones. All went pretty well, except one of the IP phones will not re-register. I compared FreePBX Extension settings for the one that works next to the one that doesn’t and compared Grandstream phone settings next to the one that doesn’t.
More oddities. When I left work yesterday, there were two extensions set up on FreePBX and on the phone that doesn’t work. The Account 2 finally started working, an hour after I left.
Every hour the other phone is logging this.
[2010-03-02 03:06:47] NOTICE[5085] chan_sip.c: Registration from ‘sip:[email protected];user=phone’ failed for ‘192.168.20.24’ - Wrong password
I quadruple-checked the passwords.
I tried both User ID is phone number: Yes and No. It is Yes on mine.
ANY IDEAS ARE WELCOME
More system info:
Asterisk (Ver. 1.4.21.2):
Asterisk Source Version : 1.4.21.2
Zaptel Source Version : 1.4.12.1
Libpri Source Version : 1.4.7
Addons Source Version : 1.4.7
MySQL client version: 5.0.45
phpMyAdmin - 2.11.0
Server version: 5.0.45
Protocol version: 10
Last week, I started writing a bash script called unban that would check the jails on fail2ban and report the IP addresses banned then give you the option to unban them. Unfortunately, I could never get fail2ban to stop and restart properly or iptables to sync with fail2ban. From the fail2ban site, it looks like we’ll have to wait until version 0.90 for fail2ban-client to be able to unban IP addresses. Currently we are at version 0.84.
if [ $choice = "1"]; then
clear
echo
echo "Displaying fail2ban jail list:"
echo
fail2ban-client status
echo
read -p "Press enter to continue"
elseif [ $choice = "2"]; then
clear
echo
echo "Displaying apache-tcpwrapper jail:"
echo
fail2ban-client status apache-tcpwrapper
echo
read -p "Press enter to continue"
elseif [ $choice = "3"]; then
clear
echo
echo "Displaying apache-badbots jail:"
echo
fail2ban-client status apache-badbots
echo
read -p "Press enter to continue"
elseif [ $choice = "4"]; then
clear
echo
echo "Displaying ssh-iptables jail:"
echo
fail2ban-client status ssh-iptables
echo
read -p "Press enter to continue"
elseif [ $choice = "5"]; then
clear
echo
echo "Displaying asterisk-iptables jail:"
echo
fail2ban-client status asterisk-iptables
echo
read -p "Press enter to continue"
elseif [ $choice = "6"]; then
clear
echo
echo "Displaying vsftpd-iptables jail:"
echo
fail2ban-client status vsftpd-iptables
echo
read -p "Press enter to continue"
elseif [ $choice = "7"]; then
clear
echo
echo "Unban an IP address:"
echo
read -p "Enter the IP that you wish to unban:" banned_IP
iptables -D fail2ban-SSH -s $banned_IP -j DROP
echo $banned_IP will be unbanned
echo
read -p "Press enter to continue"
elseif [ $choice = "Q"]; then
echo "Bye"
exit
fi