So I'm looking at tying Elastix in with Microsoft OCS 2007 for a client, looks like I need SIP over TCP which is only in Asterisk-1.6.
Time to try the update I thought!
I'd previously compiled my own 1.4.22 without a worry, I needed iLBC, and have built a few distributions from a debian net-inst so thought this couldnt be too hard :) Figured I'd write a quick How-To just to show that its not too difficult, and also so I can just copy / paste everything next time I want to do an upgrade.
This assumes you're clever enough to locate all the files & download them yourself (Well I'd really like to hope so. If you cant - You shouldnt be upgrading)!!!
First, login as root, then put all files in /usr/src
tar xvzf dahdi-linux-2.0.0.tar.gz
# Note: I dont have my TDM410p in this box, so I havent actually tested the calling in / out using any hardware cards etc...
# It'll download a whole lot of firmware and stuff afterwards, just leave it to do its thing. When its done, it will tell you that you should now install the dahdi-tools package.
# We're doing everything in this order, so that Asterisk builds with dahdi support.
tar xvzf dahdi-tools-2.0.0.tar.gz
# You may also want to run make config - it'll copy some sample config files which may or may not help you
tar xvzf asterisk-126.96.36.199.tar.gz
# run the following if you want iLBC - Skip it otherwise
# When in the menuselect, go into Codec Translators, scroll down to codec_ilbc and hit Enter to enable it, then press F12 to save & exit
# It'll take a few mins to build. It didnt take too long on my 1.6Ghz Atom
# Note, it'll complain afterwards about all the modules that arent compatible, things like g729, write them down somewhere
# Now you mv all the files it complained about to somewhere else, otherwise it quite possibly wont start. Unfortunately this means you may lose SQL CDR logging amongst other things
# Once you've done that, we just need to install FreePBX-2.5.1!
tar xvzf freepbx-2.5.1.tar.gz
Around now, it failed due to missing format_au.so which apparently is Sun Microsystems AU format (signed linear).
I commented it out by adding a ; in front of the following line in /etc/asterisk/modules.conf:
load => format_au.so
Now its as good as gold :)
So it kinda sucks Ive lost SQL CDR logging for now (Cant be bothered messing around re-enabling anything - its almost midnight here in New Zealand), and Ive only run a few test calls, nothing major, but its still nicely integrated with Elastix and hasnt died on me as the 1.6 beta versions did. This isnt a high volume box, mostly just used for testing purposes, so Ive not really put it through its paces. This at least shows its relatively easy to upgrade to the new asterisk-188.8.131.52 & freepbx-2.5.1 :)
Comments / feedback welcome, as well as thoughts on how to stop it crashing when trying to load cdr_addon_mysql.so, as this is why I move the modules all to /root ;)