Introduction to Resiprocate Use: Intranet to build a Sipproxy test environment based on repro __resiprocat

Source: Internet
Author: User
Tags create domain to domain linphone
test Environment

Sipproxy:repro + CentOS
Client: Windows computer client uses X-lite, mobile Andriod client uses Linphone repro configuration and boot log configuration

If the default log configuration is used, the log level is info and all logs are printed to standard output. If you want to output to a file, do the following similar configuration:

########################################################
# Log Settings
################################ ########################
loggingtype = file
loglevel = STACK
#指定log文件路径
logfilename =.. /log/repro.log
Web address Settings

If you want to use the repro configuration of a Web page operation, you need to change the HTTP address to the IP of the machine where the repro resides. The port default configuration is 5080. My repro machine IP is 172.16.12.29, the configuration is as follows:

Httpbindaddress = 172.16.12.29,:: 1
Start Repro

./repro Create domain, user, and Route

Browser Login to Repro control page:

172.16.12.9:5080

Prompted to enter the username and password, the default is admin, login after the successful click Login, the interface is as follows:
Create domain

Any user must belong to a certain domain,repro will be the next hop according to Domain path. Create domain interface as follows, the port can not fill, the domain name casually input. When domain is created, it is displayed in the following list.

Special attention is paid to:
(1) After you create domain, you need to restart repro.
(2) The domain name can be a string, or you can use the repro IP address directly. If it is a string, you need to configure the DNS rules. For example, if I create test.sipproxy.cn, I need to have this domain DNS on proxy. The simplest is to configure the/etc/hosts. Otherwise, NO DNS errors will occur. Create user

Enter user name, select domain, enter password, add can.
Create Route

This step is not necessary, but when we call, it is customary to enter a digital number, not the user name. So the mapping of digital numbers to user names is achieved by creating route. Follow the prompts to correctly enter the URI and destination.
Client Login

After the above steps, there will be users:

For example, I have two users: test3@test.sipproxy.cn and test4@test.sipproxy.cn.
Corresponding numbers are 33333 and 44444, respectively.

Computer on X-lite Login:

Mobile on the Linphone landing:

After successful landing, the repro control page can see the relevant login registration information:
Test Results

Dial the number 44444 on the TEST3 and call it successful. Grab the bag, the flow chart is as follows:
problems encountered

(1) Domain name must be configured with DNS

(2) If the domain name is repro IP, do not change the repro default port 5060. At the beginning of my test, because 5060 was occupied by other applications, the repro port was changed to 5066, and the IP domain name could not be configured. Because the port is not resolved from the domain name in the repro code, the default port 5060 is used, which is written in hard code. That is to say, the invite will be routed to Port 5060, causing the call to fail. If you want to use IP as a domain name and change the port, you can add an upper port on the domain name, such as 172.16.12.29:5066.

(3) In the repro port grab bag, the end of the call, unexpectedly did not catch bye bag.
The reason for this is the ACK and bye packets, the main call and being called sent directly, without passing through the repro. Because the bye is a different transaction, the bye path relies on the Recordroute, so this is repro not inserting itself into the recordroute. This in the configuration will forcerecordrouting to true, and Recordrouteuri match on it.

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.