Freeswitch Howto

As promised here is my Freeswitch howto.  A few things first.  The reason I’m doing this is to get more documentation out there.  I have to admit I have never been so disappointed with Google.  I had one heck of a time trying to find the information I needed, so I’m writing this in hopes that the next poor sap wont have such a hard time.  I offer no guarantees that any of this will work for you, nor do I guarantee that it wont completely destroy your system if you try it.  A lot of this information can be found on the Internet, some of it I got through the Freeswitch mailing list, the Freeswitch wiki, and the Sangoma wiki.  That being said here goes.

 

Background

I work at Beartooth Mountain Christian Ranch.  We run 10 weeks of camp in the summer, and a one year Bible college during the off season.  We have buildings spread across our campus, and wanted a phone system that worked in all of them.  Up until now we’ve had a system in the main office, but no way of transferring calls to the other buildings.  When our office phone system broke they told me to look into an actual campus wide PBX, and Freeswitch was what I came up with.  We’ve got five POTS lines that come into camp, 17 phones, one fax, and two soft phones to share them with.   We needed to be able to (obviously) send and receive phone calls and faxes, but we also wanted to be able to transfer phone calls and get every one a voice mail box.

 

The Hardware

Mother board: Asus M2N68-AM Plus

CPU: AMD Athlon X2 Black Edition 2.8GHz

RAM: 2Gb PC6400 Crucial

HDD: 2 500Gb WD in a software RAID 1 setup

Telephony Card: Sangoma A200 PCI-e with hardware echo cancelation – 1 Remora addon with 3 FXO modules, 1 FXS module, and a back pane connector.

Wired IP Phones: 15 Grandstream GXP280

Wireless IP Phones: 2 Cisco WIP310

The Software

I’m using CentOS as the operating system.  Freeswitch git version c7abfa7 (I downloaded it March 6, 2011).  Wanpipe driver version 3.5.18.

 

Installation

 

Configuration

 

The Phone System is Done (I Think)

I went live with it last night, and things are good so far.  I discovered the problems I was having with sending double DTMF tones was because both my software (Freeswitch) and my hardware driver (wanpipe) were both sending the signals.  Once I got that reconfigured, and changed some settings on our phones everything worked.  So it was a good day.  I also had to redo my voice mail web page because the Freeswitch guys changed some things around in that part as well.  I’ll be documenting the whole thing tomorrow morning in the tech section of this blog.

Proverbs 28:13 He that covereth his sins shall not prosper: but whoso confesseth and forsaketh them shall have mercy.

It is sad how opposite this is to how I actually live.

A Long Week Last Week

So after my oops on Tuesday during the day I made another one that night.  In my attempt to fix the phone system I decided to update the software.  The update went fine, but I couldn’t start the program.  So in one day I single handedly took out the entire network, and the phone system.  I was up till 1:00 a.m. trying to fix it.  At that point I called it quits and set the old system back up, but I didn’t get done with that till 2:00.  Then I got sick.  Basically last week was not fun at all.  The phone system is finally starting to come back together, but I’ve still got a ways to go.  I’m feeling much better though I’ve got a bit of a cough.  I also spent almost no time with God last week and I’ve missed Him, so I’m trying to remedy that.

Psalm 67:1 God be merciful unto us, and bless us; and cause his face to shine upon us; Selah.

67:5-7 Let the people praise thee, O God; let all the people praise thee. Then shall the earth yield her increase; and God, even our own God shall bless us. God shall bless us; and all the ends of the earth shall fear him.

Proverbs 27:1-2 Boast not thyself of tomorrow; for thou knowest not what a day may bring forth. Let another man praise thee, and not thine own mouth; a stranger, and not thine own lips.

Ecclesiastes 9:18 Wisdom is better than weapons of war: but one sinner destroyeth much good.

Oops

It was a very eventful day.  I was working on our router today and some how manged to accidentally  turned off our dhcp server.  For those of you who don’t know that is what gives all the computers on the network an address.  So in the middle of my job performance review, the network completely died.  No printing, no file server, no phones, and no Internet.  The good news is they didn’t fire me, my review went fine, and I fixed the problem (but not till after lunch).  The new phone system is installed and mostly working.  I’ve been getting some really weird problems when people call out using their phone cards.  It seems to randomly send extra DTMF tones.  What is stranger is that only our hardware phones do it.  The softphone on my computer works just fine.  No problems at all.  I’m going to do a bit of Googling tomorrow to see if I can fix it.  If Google doesn’t have the answer I’ll go back the the Freeswitch mailing list.  They really are helpful.

Psalm 65:1  O thou that hearest prayer, unto thee shall all flesh come.

Proverbs 25:9  Debate thy cause with thy neighbour himself; and discover not a secret to another:

25:27 It is not good to eat much honey: so for men to search their own glory is not glory.

Ecclesiastes 7:3-4  Sorrow is better than laughter: for by the sadness of the countenance the heart is made better. The heart of the wise is in the house of mourning; but the heart of fools is in the house of mirth.

7:8  Better is the end of a thing than the beginning thereof: and the patient in spirit is better than the proud in spirit.

7:14  In the day of prosperity be joyful, but in the day of adversity consider: God also hath set the one over against the other, to the end that man should find nothing after him.

7:20  For there is not a just man upon earth, that doeth good, and sinneth not.

 

CCCA Super Sectional

So this week most of us (us being the BMCR staff) have been in Coeurd’Alenae Idaho.  It has been a good time of rest, fellowship, and learning.  We’ve had four days of workshops, teaching, and music.  I am so thankful we are able to come here and do this.  We’ll be driving back to camp tomorrow.  Hopefully the student’s wont be to upset to have us back.

Psalm 60:3 Thou hast shewed thy people hard things: thou hast made us to drink the wine of astonishment.

Proverbs 20:11 Even a child is known by his doings, whether his work be pure, and whether it be right.

Progress (Finally)

The phone system is finally starting to come together.  After baning my head against a wall for two and a half days I gave in and asked the people on the Freeswitch mailing list for help, and they came through.  I can receive calls (some time soon I hope I’ll be posting several blogs on how to do all this) to the groups I specify, from the lines I specify.  I’ve set up voice mail for my groups.  I’m going to order the rest of the phones tomorrow, install and test them next week, and hopefully at the end of the week after that we’ll go live.  I have prayed a lot over this project asking God for help, and He keeps coming through.  Never when I want Him to, but in His time He’s working it all out.  I also got the new program office wired, and the main office re-wiring almost done.  It has been a very productive week.

Psalm 55:16 As for me, I will call upon God; and the Lord shall save me.

How many times does David say this? How different would my life be if this was my first response?

Proverbs 16:6 By mercy and truth iniquity is purged: and by the fear of the Lord men depart from evil.

Update

So it’s been a while.  Last week was actually quite eventful.  I’ve got the phone system half way done (no I haven’t documented any of yet, but I will…maybe).  Halfway meaning I can call out, but for some reason cannot receive calls.  We had a really big meeting and finally got our office/living places worked out.  Long story short I had to move yesterday from above the office (which will now become more office space) to the guys dorm.  We also had our drive in movie night for the college students.  I got started on the new Arrowhead website, but have mostly dropped that for the phone system.  I’m rambling again so I’ll stop now.

Proverbs 15:11 Hell and destruction are before the Lord: how much more then the hearts of the children of men?

It has Begun

All the parts are finally here for the phone system.  I got the box assembled and the hardware installed.  Tomorrow I start installing software.  I’ve decided it’s time to split this blog.  I’m going to have “personal” articles and “tech” articles.  We’ll see how that goes.  It was actually a very good day, but not a whole lot happened.

Proverbs 13:10 Only by pride cometh contention: but with the well advised is wisdom.

Contention happens because of pride.

Job 36:22 Behold, God exalteth by his power: who teacheth like him?

For the Verses

I have to admit I don’t have much I want to say, but I liked the verses from my devotions so much I decided to post any ways.

Psalm 51:6 Behold, thou desirest truth in the inward parts: and in the hidden part thou shalt make me to know wisdom.

51:7-13 Purge me with hyssop, and I shall be clean: wash me, and I shall be whiter than snow. Make me to hear joy and gladness; that the bones which thou hast broken may rejoice. Hide thy face from my sins, and blot out all mine iniquities. Create in me a clean heart, O God; and renew a right spirit within me. Cast me not away from thy presence; and take not thy holy spirit from me. Restore unto me the joy of thy salvation; and uphold me with thy free spirit. Then will I teach transgressors thy ways; and sinners shall be converted unto thee.

Look what has to take place in me before sinners will be converted.

The Website is Live!!

Finally.  Check out the new BMCR website.  It went live on the 14th as planned.  What wasn’t planned (but I should have seen coming) was our e-mail outage.  We were unable to receive e-mail for half the day on Friday because I messed up (it was fixed by Friday evening though).

Today I touched up the Arrowhead website, worked on Barnard’s computer, had a meeting, and of course did a trash run.  We also started getting parts for the new phone system.  I’m really hoping to be able to get that project started tomorrow (seeing as how I’m already behind schedule).

Psalm 48:14 For this God is our God for ever and ever: he will be our guide even unto death.