Recently I start to investigate how to make asterisk to be an SIP BPX with small foot print, and I have a running SIP PBX now. Below are the notes on how I got it to run.
Platform: I am running asterisk in Colinux under Windows Vista. Debian 5 is running in Colinux.
Short summary:
version: asterisk 1.4 is stable and used widely. 1.6 is considered short-term support. Supposedly 1.8 is another stable version for long-term support. I use 1.4 source : the source tar gzip of asterisk is about 23MB. It uses the standard "./configure;make;make install" procedure to compile. See README in source tar ball. structure: asterisk uses a lot of ".so" dynamic libraries, which are called modules and are loaded dynamically when program starts. Which one to load or not to load is controlled by the file "modules.conf". Many of the modules are essential to make asterisk useful, while others are optional for our purpose. directories: configurations are under /etc/asterisk, modules (dynamic library files are under /usr/lib/asterisk/modules). Other directories are determined in compile-time and are listed in "asterisk.conf" configurations: Unlike most unix programs, "asterisk.conf" is not what you change the most. In fact, you can probably leave it as is. The files we need to change the most for making a IP PBX are:
modules.conf ; for configuring which modules to load or not load
sip.conf ; for configuring all sip channels, both external and internal
extensions.conf; the heart of the PBX, configures what key press/ what extension does what
apt-get install asterisk
/etc/init.d/asterisk stop. I like to use console for getting thing to run. so stop the daemon
copy modules.conf below as your modules.conf
copy sip.conf as your sip.conf. I use sipgate as my provider. ( I tested incoming call and outgoing call to toll-free numbers)
copy extensions.conf to yours.
start your asterisk in console mode (asterisk -cvvv)
install x-lite software phone on your Windows and configure it as follows:
now you can dial 123 to hear the playback voice from asterisk. go to asterisk CLI, and type "sip show peers" and you should see two peers, your sipgate and your x-lite phone.
You can now make calls and receive calls.
For further reading, I recommend the O'reilly book "Asterisk".
No comments:
Post a Comment