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.