Line 11: |
Line 11: |
| | | |
| Step 1: Install ssh, lamp and other required packages | | Step 1: Install ssh, lamp and other required packages |
− | sudo apt install linux-headers-`uname -r` gcc g++ make libnewt-dev libncurses5-dev openssl libssl-dev zlib1g-dev libxml2-dev libjansson-dev uuid-dev libsqlite3-dev git autoconf automake | + | sudo apt update |
| + | sudo apt install linux-headers-`uname -r` gcc g++ make libnewt-dev libncurses5-dev openssl libssl-dev zlib1g-dev libxml2-dev libjansson-dev uuid-dev libsqlite3-dev git autoconf automake vim |
| | | |
− | Step 2: Enter superuser mode and run below commands to install python packages required for asterisk. | + | Step 2: Installing asterisk. Note install only this version of asterisk in this way only. Go to http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ link and download '''asterisk-13.13.1.tar.gz''' file. Run below commands to install it |
− | sudo -s
| |
− | <Enter your password>
| |
− | apt-get install python-setuptools
| |
− | easy_install MySQL-Python
| |
− | easy_install tweepy
| |
− | easy_install oauth2
| |
− | easy_install stopwatch
| |
− | easy_install simplejson
| |
− | | |
− | Step 3: Disabling your firewall
| |
− | sudo ufw disable
| |
− | | |
− | | |
− | Step 4: Installing asterisk. Note install only this version of asterisk in this way only. Go to http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ link and download '''asterisk-13.13.1.tar.gz''' file. Run below commands to install it
| |
| cd /usr/src | | cd /usr/src |
| sudo tar -xvzf ~/Downloads/asterisk-13.13.1.tar.gz | | sudo tar -xvzf ~/Downloads/asterisk-13.13.1.tar.gz |
| cd asterisk-13.13.1 | | cd asterisk-13.13.1 |
| ./configure | | ./configure |
− | make clean | + | sudo make clean |
− | make | + | sudo make |
| sudo make install | | sudo make install |
| sudo make samples | | sudo make samples |
| | | |
− | Step 5: Enter superuser mode and run below commands to install and setup Swara | + | Step 3: Download and extract folders from http://karnatakaeducation.org.in/swarabinFiles.zip to /opt/swara/ |
− | wget https://github.com/ccidmysore/swara/tarball/developers
| + | cd ~/Downloads |
− | mv developers /opt/swara.tgz | + | wget http://karnatakaeducation.org.in/swarabinFiles.zip |
− | cd /opt
| + | unzip swarabinFiles.zip |
− | tar xvzf swara.tgz | + | mv swarabinFiles swara |
− | mv ccidmysore-swara-1cc734f swara | + | sudo cp -r swara /opt/ |
− | cd /var/www/ | |
− | ln -s /opt/swara/web /var/www/swara
| |
| | | |
− | Step 6: Set up symlinks and Asterisk configurations | + | Step 4: Set up symlinks and Asterisk configurations |
| | | |
− | ln -s /opt/swara/web /var/www/html | + | sudo cp /opt/swara/conf/extensions.conf /opt/swara/conf/sip.conf /etc/asterisk |
− | <create folder name as asterisk in /usr/share>
| |
− | mkdir -p /usr/share/asterisk
| |
− | ln -s /opt/swara/bin /usr/share/asterisk/agi-bin
| |
− | ln -s /opt/swara/bin /usr/share/asterisk/sounds
| |
− | cp /opt/swara/conf/extensions.conf /opt/swara/conf/sip.conf /etc/asterisk
| |
− | cd /usr/share/asterisk
| |
− | mkdir orig && mv sounds agi-bin orig/
| |
− | ln -s /opt/swara/bin agi-bin && ln -s /opt/swara/sounds sounds
| |
− | cd /opt/swara/conf
| |
− | cp extensions.conf /etc/asterisk
| |
− | cp sip.conf /etc/asterisk
| |
| | | |
− | | + | Step 5: Download and install chan_dongle from https://github.com/wdoekes/asterisk-chan-dongle |
− | Step 7: Download and install chan_dongle from https://github.com/wdoekes/asterisk-chan-dongle | |
| cd ~/Downloads | | cd ~/Downloads |
| git clone https://github.com/wdoekes/asterisk-chan-dongle.git | | git clone https://github.com/wdoekes/asterisk-chan-dongle.git |
Line 71: |
Line 44: |
| sudo make install | | sudo make install |
| | | |
− | Step 8: Setup chan dongle with Asterisk: | + | Step 6: Setup chan dongle with Asterisk: |
| cd ~/Downloads/asterisk-chan-dongle/etc/ | | cd ~/Downloads/asterisk-chan-dongle/etc/ |
| <Copy the dongle.conf file to /etc/asterisk/> | | <Copy the dongle.conf file to /etc/asterisk/> |
Line 80: |
Line 53: |
| | | |
| | | |
− | Step 9: Setup Asterisk and swara to make calls: | + | Step 7: Setup Asterisk and swara to make calls: |
| <Open the file "/etc/asterisk/dongle.conf" and set the values for Context as "from-sip" and exten as "swara-local"> | | <Open the file "/etc/asterisk/dongle.conf" and set the values for Context as "from-sip" and exten as "swara-local"> |
| sudo gedit /etc/asterisk/dongle.conf | | sudo gedit /etc/asterisk/dongle.conf |
Line 86: |
Line 59: |
| | | |
| | | |
− | Step 10: Download and extract folders from http://karnatakaeducation.org.in/swarabinFiles.zip to /opt/swara/ | + | Step 8: Setup Asterisk to use swara configs |
− | cd ~/Downloads
| |
− | wget http://karnatakaeducation.org.in/swarabinFiles.zip
| |
− | unzip swarabinFiles.zip
| |
− | cd swarabinFiles/
| |
− | sudo cp -r bin/ /opt/swara/
| |
− | sudo cp -r conf/ /opt/swara/
| |
− | sudo cp -r libs/ /opt/swara/
| |
− | sudo cp -r tools/ /opt/swara/
| |
− | | |
− | | |
− | Step 11: Setup Asterisk to use swara configs
| |
| <Edit /etc/asterisk/extensions.conf> | | <Edit /etc/asterisk/extensions.conf> |
| sudo gedit /etc/asterisk/extensions.conf | | sudo gedit /etc/asterisk/extensions.conf |