Build Your own Sipserver: The construction of open source sipserveropensips and the use of terminal twinkle

Source: Internet
Author: User

Download the source code first:

Here i download the 1.8.2, because this is the most stable version of the current number, (although there are already 1.9 and 2.0)

Http://opensips.org/pub/opensips/1.8.2/src/opensips-1.8.2_src.tar.gz

Before compiling, you need to install software such as the following:

Apt-get Install Perl libdbi-perl libdbd-mysql-perl Libdbd-pg-perl Libfrontier-rpc-perl Libterm-readline-gnu-perl Libberkeleydb-perl

Extract source code:

Tar zxf opensips-1.8.2_src.tar.gz

Then make menuconfig, I just changed the installation path here. Then make && makes install.

After the compilation is successful, only one place needs to change, change the Etc/opensips/opensips.cfg file under the installation folder:

Put listen=udp:127.0.0.1:5060 # CUSTOMIZE ME

Change to: listen=udp:192.168.1.10:5060 #这里的的IP以本机实际IP为准, of course, suppose to stare out of it, the default will listen to all ports, to see their own needs.

Start the service:

Run Opensipsctl start under usr/sbin/under the installation folder (Note: Start Here is its number of references)

This may fail because it involves the need to create files in the/tmp,/var folder, and so on. You will need to use sudo to run the command at this point:

sudo usr/sbin/opensipsctl restart

#注意, here usr is not in front of/, because I am here in this Usr folder non-root folder of USR.

It does not seem that you need to add users to be able to directly register users. Please fill in the Register username and password can, but username must be a number , otherwise unable to dial. So at this point you can use the mobile phone register to try (I use my I9100). This user management should be able to be configured, but need to study this server's configuration file.

Use sudo usr/sbin/opensipsctl ul show to view the user's case.

Well, right now there's just one cell phone that can't test the call, so try it with your wife later.

------

With my i9100 and wife's i900 test A, call success! Just seem to be able to voice calls only, the phone's own software does not support video.

At this point, two mobile phone calls have been successful, in addition to the way to test the client on the PC here in Ubuntu installed the Twinkle software by the way a test.

First of all, install Twinkle I was in the graphical interface installed, in Software Center search SIP can find this software, point installation can.

After successful installation, because this tool also uses the default 5060port, so it will conflict with the previous opensips, so you need to change the port.

In addition, the configuration of this software domain, started not understand the value of how to fill in, written as 192.168.1.10:16060 (front is the server IP, followed by the local port), always register unsuccessful, return 403 error. Later careful study of a, this domain should just fill in the IP address, or fill in 192.168.1.10:5060, that is, fill the server side of the right, after the change was successful.

Today, you can play the call between the PC and the phone.

Build Your own Sipserver: The construction of open source sipserveropensips and the use of terminal twinkle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.