一、VoIP概述 VoIP是Voice over Internet PRotocol的簡稱,意為在Internet(因特網)上傳輸話音。VoIP技術又常被稱為網絡電話、IP電話或Internet電話技術。VoIP最基本的功能是提供基于Internet的、費用低廉的語音和傳真服務。它還可以進一步擴展到基于IP的語音服務。因此VoIP就是一種提供IP電話業務和一些以此為基礎的增值業務的技術。具體來說,VoIP采用的是計算機通訊的分組化、數字化傳輸技術,先對語音數據進行壓縮編碼處理,然后把數據按IP等相關協議打包,數據包通過IP網絡傳輸到接收地之后再重新串起來,經過解碼解壓恢復成原來的語音信號。與傳統的語音業務相比,VoIP能在同樣帶寬條件下使通話數量成倍增加,因此可以低成本地實現語音傳輸、傳真等傳統電信業務。另外,由于VoIP有效地利用了互聯網的基礎設施和全球IP互聯的環境,所以能對諸如統一消息、虛擬電話、虛擬語音/傳真郵箱、查號業務、Internet呼叫中心、Internet呼叫治理、電視會議、電子商務、信息存儲轉發等新興的數據業務提供有力的支持。
1. 在北京的路由器做如下配置: Current configuration : 964 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service passWord-encryption ! hostname beijing ! ! username gongmao password xxxxxxxx ip subnet-zero !
fax interface-type fax-mail mta receive maximum-recipients 0 ! interface FastEthernet0/0 ip address 172.17.0.1 255.255.255.0 duplex auto speed auto
ip classless ip http server ip pim bidir-enable !
call rsvp-sync ! ! mgcp profile default ! dial-peer cor custom ! ! ! dial-peer voice 10 pots 語音端口指定電話號碼101 destination-pattern 101 dial-peer voice 11 pots 語音端口指定電話號碼101 destination-pattern 102 ! dial-peer voice 20 VoIP 撥號對等體指定撥201時去成都的路由器 destination-pattern 201 session target ipv4: 192.168.0.1 dial-peer voice 21 VoIP 撥號對等體指定撥202時去成都的路由器 destination-pattern 202 session target ipv4: 192.168.0.1 ! ! line con 0 line aux 0 line vty 0 4 password xxxxxx login ! ! end 2. 在成都的路由器做如下配置: Current configuration : 964 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname chengdu ! ! username gongmao password xxxxxxx ip subnet-zero ! ! fax interface-type fax-mail mta receive maximum-recipients 0 !
! interface FastEthernet0/0 ip address 192.168.0.1 255.255.255.0 duplex auto speed auto ! ip classless ip http server ip pim bidir-enable ! ! call rsvp-sync ! ! mgcp profile default ! dial-peer cor custom ! ! ! dial-peer voice 10 pots destination-pattern 201 dial-peer voice 11 pots destination-pattern 202 ! dial-peer voice 20 VoIP 撥號對等體指定撥101時去北京的路由器 destination-pattern 101 session target ipv4: 172.17.0.1 dial-peer voice 21 VoIP 撥號對等體指定撥102時去北京的路由器 destination-pattern 102 session target ipv4: 172.17.0.1 ! line con 0 line aux 0 line vty 0 4 password xxxxxx login ! ! end