Connect two asterisk servers

Source: Internet
Author: User

Connect two asterisk servers

There are two asterisk servers. You can call the extension number registered on the other server.

Assume that there are two servers A and B. Extension A starts with extension 3, such as 3000. Extension B starts with extension 8, such as 8000.

Create an IAX trunk on a and name it "interoffice". The configuration is as follows:
"Peer detail" item
IP address of host = B
Qualify = Yes
Type = friend
Set a dialing rule, which is "80xx"

Create outbound routes on a and name it "interoffice". The configuration is as follows:
The dialing rule "80xx", and the trunk selects "interoffice"

Create IAX trunk on B and name it "interoffice". The configuration is as follows:
"Peer detail" item
IP address of host =
Qualify = Yes
Type = friend
Set a dialing rule. If necessary, click "30xx"

Create outbound routes on B and name it "interoffice". The configuration is as follows:
The dialing rule is "30xx", and the trunk selects "interoffice"

Test: Call 8000 from a (registered on B) to connect. Call 3000 from B (registered on a) to connect.

Call One asterisk server and direct it to another server.

Assume that there are two servers A and B. You need to call the server A, then dial the extension number 8000, and then register the server B with the 8000 extension.

First, the two asterisk servers need to communicate with each other. In the previous article "connect two asterisk servers", we have already mentioned how to configure the two.

Create iax2 on server
Extension, named 8000 (to directly go to the extension number on server B), set the dial attribute to "iax2/interoffice/8000 ". Where
Interoffice is the name of the outbound routes that is connected to server B on server. In this case, OK.

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.