AstRecipes » Removing Asterisk
It is sometimes necessary to completely remove Asterisk for one machine, for example because you need to install a newer version. Stop Asterisk and unload its modulesThe first thing you have to do is to stop Asterisk and unload the modules it may be using, e.g Zaptel's. The following lines will brutally terminate Asterisk and kill all ongoing conversation. You have to kill safe_asterisk first, otherwise it will respawn Asterisk.
killall -9 safe_asterisk
killall -9 asterisk
[root@zebru]# lsmod | grep zaptel
zaptel 214820 2 wcfxo,wctdm
crc_ccitt 2113 1 zaptel
modprobe -r wcfxo
modprobe -r wctdm
..repeat for all zaptel submodules....
modprobe -r zaptel
By running the commands below, you will delete with no possible recovery an Asterisk system. First make a backup of things you'd like to keep, lik ethe log files or the configuration files.
rm -rf /etc/asterisk
rm -f /etc/zaptel.conf
rm -rf /var/log/asterisk
rm -rf /var/lib/asterisk
rm -rf /var/spool/asterisk
rm -rf /usr/lib/asterisk
Softlinks:
Compiling Asterisk 1.4 beta - Compiling Asterisk 1.4 with TDM400 and H323 - Installing the Asterisk GUI - asterisk - Peering two Asterisk servers using IAX - Script to convert music-on-hold to native formats - Compiling Asterisk 1.2 with TDM400 and H323 - Compiling Asterisk 1.8 on CentOS 5.5 64-bit - Avoiding queue_log file rotation - Home Page - SandBox - Installing QueueMetrics
Compiling Asterisk 1.4 beta - Compiling Asterisk 1.4 with TDM400 and H323 - Installing the Asterisk GUI - asterisk - Peering two Asterisk servers using IAX - Script to convert music-on-hold to native formats - Compiling Asterisk 1.2 with TDM400 and H323 - Compiling Asterisk 1.8 on CentOS 5.5 64-bit - Avoiding queue_log file rotation - Home Page - SandBox - Installing QueueMetrics



