
我使用帶有 4 個 NIC 的 Elastix 2.5 (CentOS 5.11)(1 個用於 WAN,3 個用於使用 IP 驗證的 SIP 中繼)
eth0 - WAN
IPADDR=75.XX.XX.162
NETMASK=255.255.255.240
GATEWAY=75.XX.XX.161
eth1 - SIP TRUNK1
IPADDR=100.XX.XX.198
NETMASK=255.255.255.252
GATEWAY=100.XX.XX.197
eth2 - SIP TRUNK2
IPADDR=100.XX.XX.194
NETMASK=255.255.255.252
GATEWAY=100.XX.XX.193
eth3 - SIP TRUNK3
IPADDR=100.XX.XX.186
NETMASK=255.255.255.252
GATEWAY=100.XX.XX.185
所有 SIP 中繼必須透過呼叫 100.XX.XX.5 進行身份驗證,並透過 100.XX.XX.4 進行媒體
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
100.XX.XX.5 100.XX.XX.193 255.255.255.255 UGH 0 0 0 eth2
100.XX.XX.5 100.XX.XX.185 255.255.255.255 UGH 0 0 0 eth3
100.XX.XX.5 100.XX.XX.197 255.255.255.255 UGH 0 0 0 eth1
100.XX.XX.4 100.XX.XX.193 255.255.255.255 UGH 0 0 0 eth2
100.XX.XX.4 100.XX.XX.185 255.255.255.255 UGH 0 0 0 eth3
100.XX.XX.4 100.XX.XX.197 255.255.255.255 UGH 0 0 0 eth1
100.XX.XX.184 0.0.0.0 255.255.255.252 U 0 0 0 eth3
100.XX.XX.192 0.0.0.0 255.255.255.252 U 0 0 0 eth2
100.XX.XX.196 0.0.0.0 255.255.255.252 U 0 0 0 eth1
75.XX.XX.160 0.0.0.0 255.255.255.240 U 0 0 0 eth0
0.0.0.0 75.XX.XX.161 0.0.0.0 UG 0 0 0 eth3
所有 SIP 中繼(eth1、eth2、eth3)的最大容量為 200 個頻道
透過上述路由,所有呼叫都透過 eth2 100.XX.XX.193 傳遞,所以我只能實現 200 CC
請協助將所有流量路由到
100.XX.XX.5 & 100.XX.XX.4
透過以下所有 SIP 中繼 GW
eth1 100.XX.XX.197
eth2 100.XX.XX.193
eth3 100.XX.XX.185