深圳市鸿华锐信息技术有限公司欢迎您!
服务创新提升价值!
百度地图| SiteMap| 知识库| 联系我们
全国服务热线:0755-88855786   深圳:13058107600

知识库

全国服务热线:
0755-88855786
深圳:
13058107600

思科语音板卡配置

Cisco Voice



1.指定e1语音卡类型,未加载的卡在show run中可以看到

! card type command needed for slot/vwic-slot 1/0 #未加载的语音卡

#加载语音卡

card type e1 0 0



2.指定e1卡的时钟

#show run中显示的未配置时钟的卡

no network-clock-participate slot 1

no network-clock-participate slot 2

no network-clock-participate slot 3

no network-clock-participate slot 4

#配置时钟



3.站位

isdn switch-type primary-net5



4 #

controller E1 1/0

framing NO-CRC4

pri-group timeslots 1-31



5 #创建中继组

trunk group trg01



6 #将e1绑定到中继组

interface Serial0/0/0:15

no ip address

encapsulation hdlc

no cdp enable

isdn switch-type primary-net5

isdn incoming-voice voice

trunk-group trg01 #只有这一条需要配置,其余为自动生成



6 #配置可信sip列表

voice service voip

ip address trusted list

ipv4 192.168.33.40

7 #配置编码组

voice class codec 1

codec preference 1 g711ulaw

codec preference 2 g711alaw

codec preference 3 g729r8

codec preference 4 g729br8 (内置可以不用配)

8 #配置号码变换规则(非必须)

voice translation-rule 1

rule 1 /^\(.*\)$/ /9\1/



9 配置cor

dial-peer cor custom

name pstn1

name pstn2

!

dial-peer cor list pstn1

member pstn1

!

dial-peer cor list pstn2

member pstn2



10

#标记e1呼到cor pstn1

dial-peer voice 1 pots

corlist incoming pstn1

incoming called-number .T

direct-inward-dial

!

#所有corlist pstn1的呼入转向33.40

dial-peer voice 10 voip

corlist outgoing pstn1

destination-pattern .T

session protocol sipv2

session target ipv4:192.168.33.40

voice-class codec 1

dtmf-relay sip-notify rtp-nte

no vad

!

dial-peer voice 20 voip

corlist incoming pstn2

answer-address ^95......$

session protocol sipv2

session target ipv4:192.168.33.40

voice-class codec 1

dtmf-relay sip-notify rtp-nte

no vad

!

dial-peer voice 30 pots

trunkgroup trg01

corlist outgoing pstn2

destination-pattern .T



常用命令

Router#show dial-peer voice summary


Dial Peer 用于匹配入站 VoIP 呼叫。VoIP Dial Peer 2000 和 1000 用于将呼叫转发到相应的远端站点。VoIP Dial Peer 使用命令 destination-pattern 和 session target 来实现呼叫转发。为了匹配入向VoIP Dial Peer,管理员可以使用以下优先级顺序来配置相应参数:incoming called-number、answer-address和destination-pattern。


-----------------------------------

https://blog.51cto.com/lazycatcyy/5012287

QQ客服在线咨询
业务咨询:
223883921
QQ客服在线咨询
技术支持:
56802890
联系方式
联系电话:
0755-88855786
微信客服
扫码二维码
返回顶部
✉ 

留言