Part Two Finally Arrived!
It’s been a while since Part 1, but I decided to dig through my unfinished drafts and see what I fancy finishing off. At work we setup a lot of Asterisk servers for clients, so as you imagine a lot of it is preconfigured and installed with scripts.
Last week though, I got a Fujitsu Primergy TX200 S5 server to play with, and set about installing a KVM on Debian virtual system for testing. As we are looking to deploy some custom Asterisk servers for new clients, I decided that this would be my first test VM.
If you haven’t already installed Asterisk, check out Part 1
So, first look at Part 1 for a basic setup, yes, it’s still relevant for Squeeze. Now we are going to install and configure a software phone (VoixPhone) using the IAX protocol. This is a very basic setup, and will get you started.
Configuring Asterisk for Voixphone
There are two main files which need to be edited to achieve this, and they are both (as with all Asterisk .conf files) in /etc/asterisk.
First add this to your iax.conf (using your name)
requirecalltoken=no ; THIS IS IMPORTANT IF YOU CAN’T CONNECT WITH VOIXPHONE
Now we need to add the coinciding information in /etc/extensions.conf
exten => 9250,1,Dial(SIP/9250,20)
exten => 9250,2,Voicemail(u9250)
exten => 9250,102,Voicemail(b9250)
exten => 9250,103,Hangup
exten => 9251,1,Dial(SIP/9251,20)
exten => 9251,2,Voicemail(u9251)
exten => 9251,102,Voicemail(b9251)
exten => 9251,103,Hangup
exten => 2999,1,Voicemailmain()
exten => 2999,2,Hangup
include => from-iax
exten => 4321,1,Dial(IAX2/4321,20)
exten => 4321,2,Voicemail(u4321)
exten => 4321,102,Voicemail(b4321)
exten => 43231,103,Hangup
include => demo ; I have added the demo so you can dial 1000 and test your phone
include => from-sip
Now to get/install VoixPhone
Download it from here: http://www.voixphone.com/voix-phone-download
Unpack it in to your /home/you/bin directory, make it executable (chmod +x) and double click the executable. That’s it, just follow the installer.
Configure VoixPhone to use your Asterisk Server
Just click “Alt+F2” to get the run dialogue and run “VoixPhone” (Don’t forget the capitals).
Now click the icon at the bottom that looks like a cog to get to the settings.
They are pretty self explanatory now that you have just configured Asterisk.
Server Address: 192.168.X.X – Your Asterisk server, obviusleh! 😉
Caller ID Name: richslxh
Caller ID Number: 4321
Next check your Sound Options to make sure your sound card has been detected.
It maybe the case that all 3 fields are empty, or you get a “Sound not working” error. Do not fear, you just need to load the oss module 🙂
sudo modprobe snd-pcm-oss
Just to be sure it loads at boot, you can add it to /etc/modules, but now you should have sound.
Now from the terminal run Asterisk, reload it, and then restart your VoixPhone. Everything should be hunky-dory 🙂
Now test VoixPhone with the Asterisk Demo by dialing 1000