此教學主要在說明 "如何使 IPX08 與 另一部遠端的 Elastix 主機,彼此做互連的設定",如此可使得兩處的分機能互撥,以及共享各自的 outbound trunk。
由於 IPX08 與 Elastix 都是以 Asterisk 為核心,所以使用 IAX2 protocol 來連接會是比較好的選擇。
設定項目
// 新增 Trunk,這用作 Elastix -> IPX08 的撥號。
Trunks > Add A Trunk >
Provider Type: Peer
Peer Name: fromelastix
Protocol: IAX
Dialplan: default
Host: elastix.ip.address
Without Authentication: 不勾選
Username: from-elastix
Password: <thisispassword>
// 新增 Trunk,這用作 IPX08 -> Elastix 的撥號
Trunks > Add A Trunk
Provider Type: Custom Trunk
Description: elastix
Protocol: IAX
Dialplan: default
Register: 不勾選
Host: elastix.ip.address
Without Authentication: 不勾選
Username: <-->
Password: <thisispassword>
// 新增 outbound route
Outbound Routes > List Dialplans: DialPlan1 > Add a Dial Rule
Rule Name: toelastix
Place this call through: Custom - elastix
Failover: None
PIN Set: 空白
Dialing Rules: If the number begins with [001] and followed by ( [勾選] more than) [2] digits.
Delete [3] digits from the front and auto-add digit [空白] before dialing.
// 新增 Trunk,這裡的 Trunk 設定,Outgoing Settings 是用作 Elastix -> IPX08 的撥號;Incoming Setting 是用作 IPX08 -> Elastix 的撥號。
Outgoing Settings:
Trunk Name: 自定義
Peer Details:
host=ipx08.ip.address username=from-elastix secret=thisispassword type=peer
Incoming Settings:
USER Context: fromipx08
USER Details:
host=ipx08.ip.address secret=thisispassword type=user context=from-internal
Register String: 空白