Asterisk on ubuntu

So I do a lot of work on SIP, IP-Telephony and Asterisk. Yes. Have been working for an international SIP phone company for quite some time and built up a distributed, resilient network and servers for operating their ATA residential business (ATA is short for Analog Telephony Adapter) offerings. That is build up by combining both a lot of open source systems. Mysql for database ofcuase. Asterisk as the main telephony system. OpenSIP (previously known as OpenSER or just SER) and so on. So I wanted to play a bit with Asterisk on my home server, not on my laptop. So I decided to install asterisk. The OS is the same as I have on my laptop its Kubuntu 8.04 Hardy Heron on a Lenovo. Its a Intel Dual Core 2.2. Ghz with 1 gb of memory – not the greatest machine in the world but ok for me.

So i downloaded and installed the asterisk package with:

This was to get the development and the documentation also. After installing this i have asterisk working. I now connected my Grandsteram GXP2000 sip phone and  can hear the test and do echo and so.

So the next part is to get some of my special sounds and getting the conference services to work. On of the interesting things with the default ubuntu or kubuntu install of asterisk is that the sound is moved to /usr/share/asterisk instead of /var/lib/asterisk (well that is there to) but all the sound files are in /usr/share/asterisk/sounds/.

So i installed the sound files and changed the extensions.conf to include my meetme conferences. And its not working. Hum. When accessing the meetme application if get the error message that asterisk cant access the timing device. Yes – I forgot to install zaptel and the ztdummy device. So checking and ofcourse there is a package with the zaptel devices so I installed it with:

And got errors – the installer cant find any zaptel devices and that absolutely true as I dont have any in this machine. And it will not install the ztdummy device. Dam. So i need to build it probably. I can download the source with apt-get source zaptel but i hope for someting else if i could.

The I read about the module-asistance comand in ubuntu. This is actually to start with a debian comand. Remember that ubuntu and kybntu comes from the debian system and a lot of the tings in the system id debian based. Module assistant is a script that helps download and build kernel modules from source. It has a lot of different commands but if you whant to make it all you can use the auto-install command that will just do all the job. There is also a short name for module assistant – m-a that you can use if you dont what to type that much, and even a short cut for auto-install – use a-i instead.

If you dont have module assistant installed you do that with:

In my case it was already installed, but if you dont have it installed, install it and ofcourse install all the dependencies also. So I went ahead and installed the zaptel vith this:

This did the job and installed the zaptel driver for me – and now i have ztdummy running and I can run the meetme application.

If you do need to install the package again you find it under /usr/src, and you can use m-a install to install it also.

4 thoughts on “Asterisk on ubuntu

  1. when I followed your steps, my connection got disrupted. the voice is choppy, did you get this? or any way to fix it?

  2. HI there. And not I have god voice quality There can be a number of different issues.

    I need more info to gues what the problem is.

    Is this on a phone connected directly to the box? Have you tried to just check the quality with a phone calling to the echo services. Whats the hardware you are using and whats the network.

  3. I have downloadet with your instructions, and now I cant anywhere find asterisk or zaptel or anything, I dont no how to get to this and how to use it, I never have used it befor. Ithought i can use it with my pap2-na, cause with mysipswitch I have it is very unstable and is loging on and off all the time and do not get the calls through with it.
    thanks for help.

  4. If you are totally new to asterisk there might be quite some milage to go before you can use it. But basically – to connect to the application you can, from commandline type:
    sudo asterisk -r
    This should connect you to the asterisk server program, and you can exit it by the command quit
    To configure asterisk you need to lern how to create and edit the extensions.conf file for it and thats far above the scope of this article.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.