Rolling back asterisk 1.8 to 1.6 for using chan_sccp-b on freepbx distro release

I found a need to utilize the skinny protocol for cisco 7936 conference phones since there is not a sip firmware for use (officially). BTW, this broke the fax module in FreePBX. I will get around to correcting that but right now I do not need that feature

Here are the steps I took in order to build chan_sccp-b for asterisk, currently only supported on version 1.6. I have seen threads that say it builds fine with asterisk 1.8 but errors on configuration for me and not officially supported yet as of version chan_sccp-3.1.2.

Enough said

[size=14]1. Shut down asterisk on the pbx server [/size]

# amportal shutdown

[size=14]2. Use the text editor of your choice to create a new file named “centos-asterisk.repo” in the “/etc/yum.repos.d” folder. Add the following text to the file:[/size]

name=CentOS-$releasever - Asterisk - Tested

name=CentOS-$releasever - Asterisk - Current

[size=14]Save the new file and create another named “centos-digium.repo” and insert the following text:[/size]

[digium-tested] name=CentOS-$releasever - Digium - Tested baseurl=$releasever/tested/$basearch/ enabled=0 gpgcheck=0 #gpgkey=

name=CentOS-$releasever - Digium - Current

[size=14]3. remove asterisk 1.8 using yum[/size]

yum remove asterisk18-addons-bluetooth- \ asterisk18- \ asterisk18-core- \ asterisk18-addons-mysql- \ asterisk18-voicemail- \ asterisk18-doc- \ asterisk18-addons-core- \ asterisk18-addons-ooh323- \ asterisk18-curl- \ asterisk18-dahdi- \ asterisk18-addons- \ asterisk18-app_flite-0.6-8 \ asterisk18-devel-

[size=14]4. Install asterisk 1.6 using yum[/size]

yum install asterisk16 \ asterisk16-addons \ asterisk16-addons-bluetooth \ asterisk16-addons-core \ asterisk16-addons-mysql \ asterisk16-addons-ooh323 \ asterisk16-core \ asterisk16-curl \ asterisk16-dahdi \ asterisk16-devel \ asterisk16-doc \ asterisk16-snmp \ asterisk16-voicemail

[size=14]5. Download chan_sccp-b (as of this writing version 3.1.2_stable[/size]

cd /usr/src && \ wget

tar zxvf Chan_SCCP-3.1.2_STABLE.tar.gz

[size=14]6. configure and build (I build as root but is not recommended)[/size]

cd Chan_SCCP-3.1.2_STABLE && ./configure

make && make install

[size=14]7. Configuration is outside this scope but to get you started load the module in /etc/asterisk/modules.conf using load =>

The src directory for Chan_SCCP has sample configuration files for sccp.conf that will also reside in /etc/asterisk/ for configuring the phones.

Yum is a nice and easy way of installing/upgrading and removing packages when repos are successfully configured. Also I have read and since long time ASTRecipies has mentioned that installing asterisk via source tarballs is a preferred way of installation because of more grip on installation process and of what is happening behind the scenes. The method I used to remove/uninstall asterisk from a system and installing new version is straight forward and can be described in some simple steps. I have used this procedure with success during my career at Axvoice and Spectracom. Procedure is like this: First stop asterisk and dahdi services and then remove the asterisk related file as listed below.

rm -rf /etc/asterisk
rm -rf /etc/dahdi
rm -rf /var/log/asterisk
rm -rf /var/lib/asterisk
rm -rf /var/spool/asterisk
rm -rf /usr/lib/asterisk

Now asterisk is completely removed from system and you can go ahead with the installation of new version.For more details:

I would refrain from removing the /etc/asterisk directory otherwise the freepbx installation will have to be redone entirely. The asterisk configs in 1.8 work in 1.6 so there is no reason to kill the entire setup also any custom modules brought in would be deleted in /usr/lib/asterisk as well.