Install ,configure and manage opensips on kunbuntu

39
Install, Configure and Manage OpenSIPS on Kunbuntu 14.04.1 QQ:1480157712 Skype:huiwen_han WeChat:huiwen_han Gmail:[email protected] Yahoo:[email protected] Twitter FacebooK LinkedIn Google+ WeiBo QQ Xing 1INSTALL MYSQL sudo apt-get install mysql-server 设设 root 设设设2INSTALL PREREQUISITE sudo apt-get install gcc make sudo apt-get install flex bison sudo apt-get install libncurses5-dev sudo apt-get install libmysqlclient-dev

Transcript of Install ,configure and manage opensips on kunbuntu

Install, Configure and Manage OpenSIPS on Kunbuntu 14.04.1

QQ:1480157712Skype:huiwen_hanWeChat:huiwen_hanGmail:[email protected]:[email protected]   FacebooK   LinkedIn   Google+    WeiBo  QQ      Xing    

1 INSTALL MYSQLsudo apt-get install mysql-server 

设置 root的密码。

2 INSTALL PREREQUISITE

  sudo apt-get  install gcc make  sudo apt-get install   flex bison  sudo apt-get install    libncurses5-dev   sudo apt-get install libmysqlclient-dev

3 DOWNLOAD AND INSTALL OPENSIPS cd /optsudo mkdir opensipscd opensips/sudo wget http://opensips.org/pub/opensips/1.11.3/src/opensips-1.11.3_src.tar.gz sudo tar xvfz opensips-1.11.3_src.tar.gz  cd opensips-1.11.3-tls/ sudo make menuconfig

Enter :

Enter:

<--

Enter:

<-

Enter:

Input /usr/local/

Enter

<-

Enter

<-

Enter

Enter:

Enter

Installed files :

Configuration file:

cd /usr/local/etc

sudo chmod a+x opensips

cd opensips

henry@henry:/usr/local/etc/opensips$ sudo ls

opensips.cfg.sample opensipsctlrc opensipsctlrc.sample osipsconsolerc osipsconsolerc.sample

Bin File:

Lib File:

4 CONFIG OPENSIPShenry@henry:/usr/local/sbin$ pwd

/usr/local/sbin

henry@henry:/usr/local/sbin$ sudo ./osipsconfig

Enter:

Enter:

Enter:

Enter:

<-

Enter:

Enter:<-<-

Enter Enter

henry@henry:/usr/local/etc/opensips$ sudo mv opensips_residential_2014-11-16_2\:51\:13.cfg opensips.cfg

Change opensips.cfg

sudo vi opensips.cfg

Change opensipsctlrc

henry@henry:/usr/local/etc/opensips$ sudo vi opensipsctlrc

sudo touch /var/log/opensips.logsudo vi /etc/rsyslog.conf  

 sudo /etc/init.d/rsyslog restart

tail -f /var/log/syslog

tail -f /var/log/message

5 MANAGEMENT OPENSIPS

Create two users:

  opensipsctl add 101 101  opensipsctl add 100 100

6 TEST

LinPhone on windows7

The setting:

Add one proxy account:

OK:

LinPhone on Android

Install LinPhone from Google Play

Setting

I already have a SIP account

User name :100

Password : 100

Domain : 192.168.1.105

The Linphone will be online

Dial 101

101 Accepted and chat with vedio

Call ended .

7 IN FUTURE

Now the server ,windows agent and android agent are in same LAN ,

Will try the case they are in different network.