(原文連結)
IP-PBX Asterisk 使用 IAX 互連設定~總整理
Author: A-Lang ( itblog.itview.com.tw )
藉由不同的 IP-PBX 系統相互連接可以擴大聯絡網的分機群,這也經常被應用在不同建築物的公司內部分機群之間的連接或跨國分公司與總公司的的內部聯繫等需求。
透過 Asterisk Boxes 之間的相互連接信任設定,除了可與對方群內的任一支分機互通外,也可經由對方的 Trunk 作撥出及撥入的動作,等同原屬兩不同的通訊網絡整合為一個。
以下是使用 FreePBX 作為主要設定的介面工具,設定方法有四種,每一個方法都各自有不同的優缺點及特性,選擇時應視實際的使用情況來決定合適的方法。
環境介紹:
==========================================================
MainOffice(System 1) BranchOffice(System 2)
--------------------------------------------------------------------------------------------
網路位址 def.com.au xyz.com.au
--------------------------------------------------------------------------------------------
分機號碼 7001 - 7009 6001-6009
--------------------------------------------------------------------------------------------
通訊協定 IAX2 IAX2
==========================================================
特點:
Trunk 設定
|
System 1 def.com.au |
System 2 xyz.com.au |
IAX Trunk |
|
|
Outgoing Dial Rules: | XX. | XX. |
Trunk Name | BranchOffice | MainOffice |
Peer Details | host=xyz.com.au (or System 2 IP) | host=def.com.au (or System 1 IP) |
User Context | Leave blank | Leave blank |
User Details | Leave blank | Leave blank |
Register String | 91000:xxxyyy@xyz.com.au | 90000:xxxyyy@def.com.au |
注意:
註冊一直無法成功時,仍然可以運作,除非你使用 Dynamic IP。選擇此法,儘可能兩主機都使用固定 IP 位址。
Extensions 設定
System 1
|
System 2 | |
Extensions |
|
|
Phone Protocol | IAX | IAX |
Extension Number | 90000 | 91000 |
Extension Password | xxxyyy | xxxyyy |
Fullname | BranchOffice | Main Office |
Voicemail & Directory | Disabled | Disabled |
注意:分機的密碼要與 Trunk 的設定一樣, 分機號要與 Trunk 上的 username 一樣。這裡的分機僅作為與對方互連之用,不可用來接 IP-Phone。
Outbound Route 設定
System 1
|
System 2 | |
Outbound Routing |
|
|
Route Name | BranchOffice | MainOffice |
Route Password | Leave Blank | Leave Blank |
Dial Patterns | 6XXX (6001 to 6009 are Parramatta Office extensions) | 7XXX (Apart from Local extensions, all others go via City Office) |
Trunk Sequence | IAX2/Parramatta | IAX2/MainOffice |
特點:
=> Trunk 設定
System 1 def.com.au |
System 2 xyz.com.au | |
IAX2 Trunk |
|
|
Outgoing Dial Rules: | Leave Blank | Leave Blank |
Trunk Name | InterOffice | InterOffice |
Peer Details | host=xyz.com.au (or System 2 IP) | host=def.com.au (or System 1 IP) |
User Context | InterOffice-In | InterOffice-In |
User Details | context=from-internal host=xyz.com.au (or IP) type=user | context=from-internal host=def.com.au (or IP) type=user |
注意:
兩主機的 Trunk Name 與 User Context 必須是一樣的名稱。
=> Outbound Route 設定
System 1
|
System 2 | |
Outbound Routing |
|
|
Route Name | InterOffice | InterOffice |
Route Password | Leave Blank | Leave Blank |
Dial Patterns | 6XXX (6001 to 6009 are Parramatta Office extensions) | 7XXX (Apart from Local extensions, all others go via City Office) |
Trunk Sequence | IAX2/InterOffice | IAX2/InterOffice |
特點:
=> Trunk 設定
System 1 |
System 2 xyz.com.au | |
IAX2 Trunk |
|
|
Outgoing Dial Rules: | 6XXX | XX. |
Trunk Name | InterOffice | InterOffice |
Peer Details | host=xyz.com.au (or System 2 IP) | host=def.com.au (or System 1 IP) |
User Context |
|
|
User Details |
|
|
注意:
Type 要設成 Friend,且 Trunk Name 要設定相同的名稱。
=> Outbound Route 設定
System 1
|
System 2 | |
Outbound Routing |
|
|
Route Name | InterOffice | InterOffice |
Route Password | Leave Blank | Leave Blank |
Dial Patterns | 6XXX (6001 to 6009 are Parramatta Office extensions) | 7XXX (Apart from Local extensions, all others go via City Office) |
Trunk Sequence | IAX2/InterOffice | IAX2/InterOffice |
特點:
=> Trunk 設定
System 1 def.com.au |
System 2 xyz.com.au | |
IAX2 Trunk |
|
|
Outgoing Dial Rules: |
|
|
Trunk Name | ToSystem2 | ToSystem1 |
Peer Details | host=xyz.com.au (or System 2 IP) | host=def.com.au (or System 1 IP) |
User Context | insystem1 | insystem2 |
User Details | context=from-internal host=xyz.com.au (or IP) type=user secret=1234 | context=from-internal host=def.com.au (or IP) type=user secret=1234 |
注意:
=> Outbound Route 設定
System 1
|
System 2 | |
Outbound Routing |
|
|
Route Name | CallSystem2 | CallSystem1 |
Route Password | Leave Blank | Leave Blank |
Dial Patterns | 6XXX (6001 to 6009 are Parramatta Office extensions) | 7XXX (Apart from Local extensions, all others go via City Office) |
Trunk Sequence | IAX2/ToSystem2 | IAX2/ToSystem1 |
Main Office)
FreePBX > Trunks > Add IAX2 Trunk
[system2-inter] type=friend host=xyz.com.au trunk=yes disallow=all allow=ulaw qualify=yes context=from-trunk
Branch Office)
FreePBX > Trunks > Add IAX2 Trunk
[system1-inter] type=friend host=def.com.au trunk=yes disallow=all allow=ulaw qualify=yes context=from-trunk
Images 0 | ||
---|---|---|
No images to display in the gallery. |