實戰(zhàn):組建超完美的內網專線VOIP通信
2009/02/17
網絡結構:要求14個分點實現VOIP通話
本文將介紹筆者參與建設的某省級國家統計局基于邁普方案的VOIP組網方案。該方案要求全省14個市的統計局與省機關實現全面VOIP通話,當然各單位內部也能實現各自的VOIP通話,
我們可以看到這個VOIP語音方案對原有網絡結構是不做任何改動的,網絡配置也不需要做任何改動,只需要在語音語關上做是相關配置,若原電話布線系統不健全,可能需要進行桌面電話集中到網絡中心的電話布線。在這個方案中,VOIP電話系統利用現在的統計局專線網絡與各市局相連,然后各市局機關VOIP電話系統連接到現有辦公局域網就可以了。網絡結構非常簡單。
組網設備:語音網守和語音網關
邁普VOIP語音組網方案需要兩種關鍵的語音設備,分別是:語音網守和語音網關。
(一)語音網守
IP電話網守是H.323 VoIP系統方案的關鍵設備,負責實現地址解析、接入認證和帶寬管理等核心控制功能。網守最重要的功能是地址解析,它在它的路由表中查找目的網關的IP地址,如果目的網關不在本區(qū)域中,向上級網守或鄰近網守請求在別的區(qū)域(一個網守就是一個“區(qū)域”)中查找。找到目的網關后返回對應網關的IP地址,這樣就可以跨語音網關通話。邁普MyPower VGK2X系列IP電話網守由VGK2X和VGK2X-B兩個型號構成,基于專用嵌入式結構設計,采用邁普帶寬控制、聰明路由等專有技術,具有安全可靠、功能強大、組網靈活等特點,適用于組建各類規(guī)模的H.323 VoIP網絡,或者多協議的VoIP協作通信網絡。
本方案采用的是一臺VGK2X(圖2)網守部署在省局,各市局語音網關在其上注冊,最終實現各市局跨語音網關遠程通話。
(二)語音網關
邁普語音網關MyPower VG系列包括:VG M6000、VG2000、VG800和VG A600四個型號,與邁普VGK2X系列網守配合使用,可為用戶構建以VoIP為基礎的網絡語音通信平臺。
MyPower VG系列語音網關同時支持成熟的H.323協議和先進的SIP協議,采用邁普專有通話質量提升技術,包括靜音壓縮及舒適噪聲、回波抵消功能、動態(tài)JitterBuff調整和丟包補償等機制,提供可與傳統PSTN相媲美的高品質通話。并采用邁普特有的“聰明路由”,能夠動態(tài)地為當前呼叫選擇最佳路徑,即使在IP網絡阻塞和單點設備故障等異常情況下,也能夠為用戶提供高品質的通話!1:1綁定”技術,可以實現VOIP電話與原有PSTN電話一對一綁定,能夠完全不改變用戶的原有電話號碼和撥打習慣,并且在單點設備掉電等異常情況下,也能夠為用戶提供PSTN通話,保證電話永遠不會出現斷路。這樣,使用電話的用戶完全不會感覺得到他或她在打的電話是經過VOIP還是普通市話。但本方案中,采用的是“純”的IP電話,語音網關沒有接入PSTN線路,因此沒有做“1:1綁定”。 MyPower VG系列語音網關還支持PSTN附加業(yè)務和特色增值業(yè)務,極大提升VoIP系統價值,包括:電話會議,群組振鈴,呼叫代答,來電顯示,呼叫轉接,呼叫等待,熱線撥號,IVR錄音等增值功能。
在本方案中,在省局機關采用兩臺MyPower VG M6000來實現大容量的電話接入,分別是64門和94門;在各市局采用MyPower VG 2000來實現16~32門的電話接入。
MyPower VG M6000是核心級語音網關,采用全模塊化設計,支持接入端口類型、端口數量和處理能力的按需配置,支持板卡熱插拔、雙電源冗余、“1:1綁定組網”和“掉電逃生”,也就是語音網關掉電時,一樣可以打電話。最大可以提供4路E1中繼(用來接入外線電話)和96線模擬接入(用來接到桌面普通電話機)。
MyPower VG2000是地市級語音網關,采用全模塊化設計,支持業(yè)務端口類別、端口數量和處理能力的按需配置,最大提供1路E1中繼和32線模擬接入或提供48線模擬接入。
如何進行號碼規(guī)劃方案
有兩種號碼規(guī)劃方法:一種是純的VOIP電話方案,自定義本單位內部的VOIP電話號碼;另一種是使用原有的電信市話號碼做為VOIP電話的電話號碼,并做“1:1綁定”。
方案1:自定義VOIP電話號碼方案
這種方案一般使用三位或四位數字來規(guī)劃,號碼隨意制訂。上面已經提到過本方案是“純”的VOIP電話組網,也就是沒有接入市話線路,因此不需跟市話號碼做“1:1綁定”。若做“1:1綁定”,我們一般采用市話的號碼來規(guī)劃VOIP號碼,這樣方便記憶和操作。在這里不需綁定市話號碼,所以采用自定義三位(數字)小號,在前面加各市區(qū)號來組合成VOIP電話號碼,本地(指語音網關內部)通話直撥小號,跨市局通話,前面加撥區(qū)號,由網守來路由。
這種方案只使用模擬接入板卡模塊(FXS卡),用來接入普通桌面電話機。
方案2:使用原有電信市話號碼來作為對應的VOIP電話號碼
這種方案使用桌面電話的原有電信市話號碼作為內部VOIP電話的號碼,這樣最終使用電話的用戶還是按照原來撥號方式打電話,他(她)并不知在打的電話是經過IP網絡還是經過電信公司的市話線路。在VOIP網絡通暢時,電話是優(yōu)先經過VOIP鏈路通話的,只有在VOIP出現故障或打外線電話時,才會通過電信公司市話線路通話。
這種方案除了使用模擬接入板卡模塊(FXS卡),用來接入普通桌面電話機,還要使用VOS卡或E1中繼模塊來接入電信市話,這樣在打外線、VOIP線路不通或者語音網關掉電的情況下,均可以用市話正常通話。
設備鏈接配置
邁普的這套VOIP語音方案只適合在已經部署了完善的內網專線上運行,語音網關和語音網守的安裝都非常簡單。只要保證專線內網的路由是通的,沒有做限制VOIP所使用的IP地址和端口的訪問控制列表,中間經過的防火墻沒有對VOIP所使用的IP地址、端口、協議等參數做了限制就可以了。在本工程中,筆者遇到的攔路虎很多都是各種不同品牌的防火墻對VOIP系統的限制,有時是無法理解的,明明似乎是對VOIP全放開了,網絡能PING得通,但VOIP電話就是不通。這需要網絡工程師和網管人員用心來研究防火墻的設置問題。實際工程中,經常是繞過防火墻就沒有問題,一經過防火墻就可能出現注冊不上網守或通話不正常的情況。
物理連接:
(1) 網絡部分,只需將語音網關和網守的以太網口接入局域網交換機的交換口就行了。
(2) 桌面電話過來的電話線應打在標準的RJ45配線架或者110配線架上,然后使用相應接口的電話跳線接到語音網關的模擬卡上對應號碼的RJ11接口上。語音網關若需接入市話線路的,就將來自電信公司的電話線接在VOS卡的RJ11接口上即可。
配置模板
(1)VGK 2X 網守配置模板
vgk2X#sh run
Building Configuration...done
Current configuration: 430 bytes
version 3.0.24(gatekeeper)
hostname vgk2X
enable password OWRW[WWW\W encrypt
no service password-encrypt
no service enhanced-secure
interface loopback0
exit
interface fastethernet0
ip address 10.45.99.231 255.255.255.0 // 配置以太網口IP
exit
ip route 0.0.0.0 0.0.0.0 10.45.99.1 // 配置默認路由
gatekeeper
time-to-live min 120
zone local maipu maipu.com 10.45.99.231 // 配置網守ID為maipu,區(qū)域名為maipu.com,IP為10.45.99.231
time-stamp difference 30
no shutdown
exit
License AA2E1FCD-E14DF946-F91E276E-65704E11
gatekeeper exit
(2)VG M6000語音網關(VG2000相同)配置模板
vg6000 #sh run
Building Configuration...done
software version 8.0.42
software image file VPM6000-VG-8.0.42.bin
compiled on Jan 14 2008, 09:49:07
hostname vg6000
no service password-encrypt
no service new-encrypt
no service enhanced-secure
service login-secure
enable password OWRW[WWW\W encrypt
ip name-order local-first
interface loopback0
exit
interface fastethernet1
ip address 10.45.103.232 255.255.255.0 // 配置以太網口的IP地址
exit
ip route 0.0.0.0 0.0.0.0 10.45.103.1 // 配置默認路由
callrouting-conf
dial-peer 10 pots slot 1 // 配置1槽的大號“撥號端”,下同
channel 0 2 destination-pattern 0771601 increase
channel 3 11 destination-pattern 0771605 increase
channel 12 20 destination-pattern 0771615 increase
channel 21 29 destination-pattern 0771625 increase
channel 30 31 destination-pattern 0771635 increase
exit
dial-peer 20 pots slot 2
channel 0 2 destination-pattern 0771637 increase
channel 3 6 destination-pattern 0771650 increase
channel 7 15 destination-pattern 0771655 increase
channel 16 24 destination-pattern 0771665 increase
channel 25 31 destination-pattern 0771675 increase
exit
dial-peer 30 pots slot 3
channel 0 1 destination-pattern 0771682 increase
channel 2 10 destination-pattern 0771685 increase
channel 11 19 destination-pattern 0771695 increase
channel 20 28 destination-pattern 0771705 increase
channel 29 31 destination-pattern 0771715 increase
exit
dial-peer 11 pots slot 1 // 配置1槽的小號“撥號端”,下類似
channel 0 2 destination-pattern 601 increase
channel 3 11 destination-pattern 605 increase
channel 12 20 destination-pattern 615 increase
channel 21 29 destination-pattern 625 increase
channel 30 31 destination-pattern 635 increase
channel 0 31 register disable
exit
dial-peer 21 pots slot 2
channel 0 2 destination-pattern 637 increase
channel 3 6 destination-pattern 650 increase
channel 7 15 destination-pattern 655 increase
channel 16 24 destination-pattern 665 increase
channel 25 31 destination-pattern 675 increase
channel 0 31 register disable
exit
dial-peer 31 pots slot 3
channel 0 1 destination-pattern 682 increase
channel 2 10 destination-pattern 685 increase
channel 11 19 destination-pattern 695 increase
channel 20 28 destination-pattern 705 increase
channel 29 31 destination-pattern 715 increase
channel 0 31 register disable
exit
dial-peer 1 voip // 配置跨區(qū)號撥打的,向網守查找
destination-pattern xx.
session-target ras
exit
dial-peer 2 voip // 配置同區(qū)號的撥打9開頭的小號的,向IP是10.45.91.232的語音網關查找(下類似)
destination-pattern 9xx
session-target 10.45.91.232
exit
dial-peer 3 voip
destination-pattern 8xx
session-target 10.45.99.232
exit
dial-peer 4 voip
destination-pattern 2xx
session-target 10.45.1.232
exit
dial-peer 5 voip
destination-pattern 3xx
session-target 10.45.14.232
exit
exit
card 0
exit
card 1
channel 0 31 callid enable // 來電功能打開
channel 0 31 enable // 開啟“通道”,下類似
exit
card 2
channel 0 31 callid enable
channel 0 31 enable
exit
card 3
channel 0 3 callid enable
channel 0 31 enable
exit
sys-clock-source specify local
voicesrv-conf
black-white-list
exit
fax-protocol t38
h323 start slow
h323 send-dtmf h245-string
h323 call-diversion default
h323 h245Tunnel off
h323 bearer-cap 3100hz
h323 fill-send-complete enable
h323 grq_interval 40
h323 call-thrust-ttl 10call-transfer enable // 打開呼叫轉移功能 call-transfer consultation
user-config enable
exit
gateway // 向網守注冊
interface fastethernet1 h323-gateway voip h323-id vg6000 // 配置本語音網關ID為vg6000 h323-gateway voip id maipu ipaddr 10.45.99.231 1718 // 網守ID為maipu,及網守IP10.45.99.231及網守端口號1718 h323-gateway voip interfaceexit
line vty 0 4 password 0 admin login exit
總結:邁普VOIP方案的安裝部署非常簡單,幾乎不用做原有專線內網的任何改造。配置命令也不復雜,關鍵位置也只有少數幾句而已。邁普語音方案具有極高的性價比優(yōu)勢,組網以后,本系統單位內部的電話將全面實現免費通話。本語音方案非常適合具有專線內網的單位實施。
51cto
相關鏈接: