Giter VIP home page Giter VIP logo

swara's Introduction

#################################################
################INSTALLATION#####################
#################################################

#1. Install pre-requisites
##################################################
# yum install lame asterisk mysql mysql-server wget gcc gcc-c++ bison libtermcap-devel newt newt-devel ncurses ncurses-devel svn zlib zlib-devel openssl openssl-devel kernel-devel httpd php-mysql php MySQL-python
# yum install python-setuptools
# [ADDITIONAL DEPENDENCIES]
# Python Setuptools
# yum install setuptools
# Python Stopwatch module
# easy_install stopwatch
# Python MySQL DB connectors
# easy_install MySQL-python
# easy_install MySQL-Python
# easy_install oauth2
# easy_install tweepy
# easy_install simplejson

#2. Disable firewall
##################################################
# /etc/init.d/iptables stop
# chkconfig iptables off
# perl -p -i -e "s/enforcing/permissive/g" /etc/selinux/config

#3. Start services on boot
##################################################
# service sshd start
# service httpd start
# service mysqld start
# chkconfig sshd on
# chkconfig httpd on
# chkconfig mysqld on

#4. Checkout Swara code
##################################################
# cd /opt
# svn co https://audiowiki.googlecode.com/svn/branches/swara

#5.Setup mysqld
##################################################
# /usr/bin/mysql_secure_installation
# Answer yes to every question
# mysql -u root -p <Enter the password>
# create database swara;
# exit
# mysql -u root -p swara < /opt/swara/conf/swaradb.sql

#7. Set up simlinks and Asterisk configs
##################################################
# ln -s /opt/swara/web /var/www/html
# 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

#7. Set up Admin Interface
##################################################
# Go to http://<yoursite>/install.php and follow instructions

#8. Set up a softphone to test
##################################################
# Download and extract SJPhone:
#  wget -c http://www.sjphone.org/softphone/SJphoneLnx-299a.tar.gz
#  tar xvf SJphoneLnx-299a.tar.gz
#  mv SJphoneLnx-299a /home/<your-user-name>/SJPhone
#
# Create a SJPhone launcher (Run as root)
#  touch /usr/bin/run-sjphone
#  echo -e '#!/bin/bash\ncd /home/<your-user-name>/SJPhone\n./sjphone' > /usr/bin/run-sjphone
#
# Load OSS ALSA Emulation Modules:
#  modprobe snd-pcm-oss
#
# SJPhone configuration:
#    1) click on the Options button
#    2) go to the Profiles tab.
#    3) click on 'New'
#    4) create a new profile called 'asterisk' with profile type 'Calls through SIP proxy'
#    5) use this profile for your asterisk connection with the following settings:
#
#    Register with proxy - checked.
#    Proxy domain: 192.168.0.1 (IP on which asterisk is listening)
#
#    Leave the rest of the settings at default. When you hit the OK button, it will ask for
#
#      Account: mysjphone
#      Password: <as above>
#
#    You can change the account and password by reinitializing the profile.
#
#    When it's working, SJPhone's main display shows:
#
#     Status: no active calls
#     Default protocol: SIP
#     SIP Proxy: registered with 192.168.0.1
#     Host address: 192.168.0.2
#
#    and Asterisk's console displays:
#     Registered SIP 'mysjphone' at 192.168.0.2 
#

swara's People

Contributors

arjunvenkatraman avatar

Stargazers

 avatar A Purnomo avatar Aji Kisworo Mukti avatar

Watchers

 avatar Khayat avatar Agung Riyadi avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.