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

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]

[asterisk-tested]
name=CentOS-$releasever - Asterisk - Tested
baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium

[asterisk-current]
name=CentOS-$releasever - Asterisk - Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium

[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=http://packages.digium.com/centos/$releasever/tested/$basearch/ enabled=0 gpgcheck=0 #gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium

[digium-current]
name=CentOS-$releasever - Digium - Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium

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

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

[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 http://downloads.sourceforge.net/project/chan-sccp-b/V3/Chan_SCCP-3.1.2_STABLE.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fchan-sccp-b%2Ffiles%2FV3%2F&ts=1325716136&use_mirror=iweb

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 => chan_sccp.so

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

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: http://snapvoip.blogspot.com/2007/07/uninstall-asterisk-remove-asterisk-when.html#ixzz1igsgGlwp

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.