81-MSR係列路由器與思科互聯互通配置舉例(SIP)
本章節下載: 81-MSR係列路由器與思科互聯互通配置舉例(SIP) (169.39 KB)
MSR係列路由器與思科互通配置舉例
|
Copyright © 2014 杭州華三通信技術有限公司 版權所有,保留一切權利。 非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部, 並不得以任何形式傳播。本文檔中的信息可能變動,恕不另行通知。 |
|
目 錄
本文主要介紹與思科互通SIP配置。
本文檔不嚴格與具體軟、硬件版本對應,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文檔假設您已了解SIP特性。
通常用於網絡內存在不同廠商的路由器設備且有語音業務需求的環境中。如圖1所示,MSR路由器與思科ISR係列路由器均開啟SIP協議,通過SIP使用背靠背連接方式互聯,電話29211與電話4545能夠使用SIP打通電話。
圖1 與思科互通SIP基本呼叫組網圖

· 為使網絡連通,配置路由器的接口一個網段內;
· 為使電話與語音網關和目的電話聯係,配置語音實體。
· H3C
本舉例是在Release 2207P14版本上進行配置和驗證的。
· CISCO
本舉例是在RELEASE SOFTWARE (fc4)版本上進行配置和驗證的。
· 正確選擇可用的sip server,選用正確的Cisco版本。
· 兩路由器的時隙要一致,若不一致有可能導致呼叫建立不成功。
# 配置接口IP地址。
<H3C> system-view
[H3C] interface GigabitEthernet 0/0
[H3C-GigabitEthernet0/0] ip address 172.32.27.1 255.255.0.0
[H3C-GigabitEthernet0/0] quit
# 配置本地POTS實體。
[H3C] voice-setup
[H3C-voice] dial-program
[H3C-voice-dial] entity 29211 pots
[H3C-voice-dial-entity29211] match-template 29211
[H3C-voice-dial-entity29211] line 5/0
[H3C-voice-dial-entity29211] quit
# 配置遠端VOIP實體。
[H3C-voice-dial] entity 4545 voip
[H3C-voice-dial-entity4545] address sip ip 172.32.27.45
[H3C-voice-dial-entity4545] match-template 4545
# 配置接口IP地址。
ISR#configure terminal
ISR(config)#interface FastEthernet0/0
ISR(config-if)#ip address 172.32.27.45 255.255.0.0
ISR(config-if)#no shutdown
ISR(config-if)#exit
# 配置本地POTS實體。
ISR(config)#dial-peer voice 4545 pots
ISR(config-dial-peer)#destination-pattern 4545
ISR(config-dial-peer)#port 3/1/0
ISR(config-dial-peer)#exit
# 配置遠端VOIP實體。
ISR(config)#dial-peer voice 29211 voip
ISR(config-dial-peer)#destination-pattern 29211
ISR(config-dial-peer)#session protocol sipv2
ISR(config-dial-peer)#session target ipv4:172.32.27.1
(1) 使用電話29211撥打號碼4545,電話4545振鈴,4545摘機後兩端能夠正常通話,任意一方掛機,均可結束通話;
(2) 使用電話4545撥打號碼29211,電話29211振鈴,29211摘機後兩端能夠正常通話,任意一方掛機,均可結束通話。
· H3C
#
sysname H3C
#
interface GigabitEthernet0/0
port link-mode route
ip address 172.32.27.1 255.255.0.0
#
voice-setup
sip
#
dial-program
#
entity 4545 voip
address sip ip 172.32.27.45
match-template 4545
#
entity 29211 pots
line 5/0
match-template 29211
#
· CISCO
Building configuration...
Current configuration : 1449 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISR
!
interface FastEthernet0/0
ip address 172.32.27.45 255.255.0.0
duplex auto
speed auto
!
!
dial-peer voice 4545 pots
destination-pattern 4545
port 3/1/0
!
dial-peer voice 29211 voip
destination-pattern 29211
session protocol sipv2
session target ipv4:172.32.27.1
!
end
如圖2所示,MSR路由器與思科ISR係列路由器通過SIP,使用PS方式實現互聯互通,電話29211與電話4545能夠通過PS打通電話。
圖2 與思科通過PS互通組網圖

· 為開啟注冊和代理功能,配置注冊服務器和代理服務器;
· 為使電話與語音網關和目標地址之間建立聯係,配置語音實體。
· H3C
本舉例是在Release 2207P14版本上進行配置和驗證的。
· CISCO
本舉例是在RELEASE SOFTWARE (fc4)版本上進行配置和驗證的。
· 正確選擇可用的sip server,選用正確的Cisco版本。
· 注意兩端的校驗方式要保持一致。
· 兩路由器的時隙要一致,若不一致有可能導致呼叫建立不成功。
# 配置接口IP地址。
<H3C> system-view
[H3C] interface GigabitEthernet 0/0
[H3C-GigabitEthernet0/0] ip address 172.32.27.1 255.255.0.0
[H3C-GigabitEthernet0/0] quit
# 配置注冊服務器地址和注冊使用的用戶名、密碼。
[H3C] voice-setup
[H3C-voice] sip
[H3C-voice-sip] registrar ipv4 172.32.27.101
[H3C-voice-sip] user sip:[email protected] password simple 8048
# 指定本機源IP地址。
[H3C-voice-sip] source-ip 172.32.27.1
# 配置代理服務器地址。
[H3C-voice-sip] proxy ipv4 172.32.27.101
# 使能SIP注冊。
[H3C-voice-sip] register-enable on
[H3C-voice-sip] quit
# 配置本地POTS實體相關參數。
[H3C-voice] dial-program
[H3C-voice-dial] entity 29211 pots
[H3C-voice-dial-entity29211] match-template 29211
[H3C-voice-dial-entity29211] line 5/0
[H3C-voice-dial-entity29211] quit
# 配置遠端VOIP實體相關參數。
[H3C-voice-dial] entity 4545 voip
[H3C-voice-dial-entity4545] address sip proxy
[H3C-voice-dial-entity4545] match-template 4545
# 配置接口IP地址。
ISR#configure terminal
ISR(config)#interface FastEthernet0/0
ISR(config-if)#ip address 172.32.27.45 255.255.0.0
ISR(config-if)#no shutdown
ISR(config-if)#exit
# 配置注冊服務器地址和注冊使用的用戶名、密碼。
ISR(config)#sip-ua
ISR(config-sip-ua)#registrar ipv4:172.32.27.101
ISR(config-sip-ua)#authentication username sip:[email protected] password 4545
# 配置代理服務器地址。
ISR(config-sip-ua)#sip-server ipv4:172.32.27.101
ISR(config-sip-ua)#exit
# 配置本地POTS實體。
ISR(config)#dial-peer voice 4545 pots
ISR(config-dial-peer)#destination-pattern 4545
ISR(config-dial-peer)#port 3/1/0
ISR(config-dial-peer)#exit
# 配置遠端VOIP實體。
ISR(config)#dial-peer voice 29211 voip
ISR(config-dial-peer)#destination-pattern 29211
ISR(config-dial-peer)#session protocol sipv2
ISR(config-dial-peer)#session target sip-server
· 使用電話29211撥打號碼4545,電話4545振鈴,4545摘機後兩端能夠正常通話,任意一方掛機,均可結束通話;
· 使用電話4545撥打號碼29211,電話29211振鈴,29211摘機後兩端能夠正常通話,任意一方掛機,均可結束通話。
· H3C
#
sysname H3C
#
interface GigabitEthernet0/0
port link-mode route
ip address 172.32.27.1 255.255.0.0
#
voice-setup
sip
user sip:[email protected] password simple 8048
source-ip 172.32.27.1
registrar ipv4 172.32.27.101
proxy ipv4 172.32.27.101
register-enable on
#
dial-program
#
entity 4545 voip
address sip proxy
match-template 4545
#
entity 29211 pots
line 5/0
match-template 29211
#
#
· CISCO
Building configuration...
Current configuration : 1517 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISR
!
boot-start-marker
boot-end-marker
!
!
no network-clock-participate slot 2
voice-card 2
dspfarm
!
!
interface FastEthernet0/0
ip address 172.32.27.45 255.255.0.0
duplex auto
speed auto
!
dial-peer voice 4545 pots
destination-pattern 4545
port 3/1/0
!
dial-peer voice 29211 voip
destination-pattern 29211
session protocol sipv2
session target sip-server
!
sip-ua
authentication username sip:[email protected] password 06525A7519
registrar ipv4:172.32.27.101 expires 3600
sip-server ipv4:172.32.27.101
!
!
end
· H3C MSR 係列路由器 命令參考(V5)-R2311
· H3C MSR 係列路由器 配置指導(V5)-R2311
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!
