First of all let me say that this is not the only way to accomplish this, and there is not assurance that it will work for you. It did worked for me so I thought to share with community
Lets make yourself root otherwise you have to use sudo with each command(s) and have to type password in most cases
Update the system and apply updates if there are any
Install all dependencies
Import public key
Add repository so we can download asterisk 1.8
Update repository and install any update if needed
Install Asterisk 1.8
Install DAHDI
That is it, we have sucessfully installed Asterisk 1.8
Next part is to install LAMP package
Once done, restart all services or restart system
Enjoy your new system and have fun with it
I have scripted the whole process, feel free to download it
In next part we are going to set asterisk up for MySQL realtime
In this example, I am going to create two accounts and going to set them up so they can make/receive calls from each other. Both accounts will have voice mailboxes as well. I am using internal as my default context, feel free to change any setting
So lets start
Edit sip.conf file
Add the following lines in it, the file is pretty long and has broad settings but everything is commented out of the box. Following line will set up basic operation to start and then later on you can go through the file and set the option(s) you need. You can add these lines right after [general] tag
Save the file and exit
Now we need to edit extensions.conf file so all use in internal context can make/receive calls
Add the following line right after [general] tag, again the file have broad settings but this will setup the basic context[internal]
You can also add MySQL table name where all extensions are located i.e. switch => Realtime/@extensions
Save the file and exit out of it
Next we need to tell asterisk to look for MySQL database for users information
Edit extconfig.conf file
Add the following lines in it, I would just add them at the end of the file
Now we need to tell asterisk to connect to MySQL to get all informations
So edit res_config_mysql.conf file
Our database for this example is asterisk so add/append the following in that file
Adjust dbuser and dbpass to your settings, this is mysql user privilage account. You can always use root for testing if you are not sure about the account
Okay at this point our asterisk box is ready and all configured !
Lastly we need to create database in mysql
So connect to mysql and create database, first import the asterisk.sql script to create database and its related tables
Now connect to mysql and create the database and its table using asterisk.sql script, replace mypassword with your root's password
All done!
Configure hard/soft sip phones and have fun !
As always feel free to
email me if you have any question(s). Sorry for any typo
You can also access this article via my
website and via my
blog
Bookmarks