Page 1
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
Page 8
Input /usr/local/
Enter
Page 14
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
Page 15
Bin File:
Lib File:
4 CONFIG OPENSIPShenry@henry:/usr/local/sbin$ pwd
/usr/local/sbin
henry@henry:/usr/local/sbin$ sudo ./osipsconfig
Page 22
Enter:
Enter:<-<-
Page 24
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
Page 26
Change opensipsctlrc
henry@henry:/usr/local/etc/opensips$ sudo vi opensipsctlrc
Page 28
sudo touch /var/log/opensips.logsudo vi /etc/rsyslog.conf
Page 29
sudo /etc/init.d/rsyslog restart
tail -f /var/log/syslog
tail -f /var/log/message
5 MANAGEMENT OPENSIPS
Page 30
Create two users:
opensipsctl add 101 101 opensipsctl add 100 100
6 TEST
LinPhone on windows7
The setting:
Page 31
Add one proxy account:
Page 32
OK:
LinPhone on Android
Install LinPhone from Google Play
Setting
I already have a SIP account
User name :100
Page 33
Password : 100
Domain : 192.168.1.105
The Linphone will be online
Page 35
Dial 101
101 Accepted and chat with vedio
Page 37
7 IN FUTURE
Now the server ,windows agent and android agent are in same LAN ,
Will try the case they are in different network.