号码转换
内线DN 1001一般为4位,与外线DID号码的对应关系 8888 1001
运营商不接受4位号码,至少送8位号码 (主叫)
4位转8位
转换方式
1001 - 88881001
Translation rule
Voice translation rule
特殊转换:
/^9/ // 去掉9
图中的R2未使用
R1====================================
Interface f0/0
Ip add 10.0.0.1 255.255.255.0
Int f0/1
Ip add 142.100.64.254 255.255.255.0
Clock set 15:00:00 20 jul 2018
Ntp master 3
R2================================
Int f0/0
Ip add 10.0.0.2 255.255.255.0
Ntp server 10.0.0.1
R1===============================================
telephony-service
max-ephones 10
max-dn 10
ip source-address 142.100.64.254 port 2000
create cnf-files
ephone-dn 1 dual-line
number 1001
description 88881001
name BJ Phone 1
!
ephone-dn 2 dual-line
number 2001
description 66662001
name SH Phone 1
!
ephone-dn 3 dual-line
number 3001
description 5153001
name NY Phone 1
ephone 1
mac-address 0200.4C4F.4F50
type CIPC
button 1:1 2:2 3:3
reset
R2=======================================
telephony-service
max-ephones 5
max-dn 10
ip source-address 142.100.65.254
create cnf-files
ephone-dn 1 dual-line
number 88881111
name BJ PSTN
!
ephone-dn 2 dual-line
number 66661111
name SH PSTN
!
ephone-dn 3 dual-line
number 5151111
name NY PSTN
ephone 1
mac-address 000c.294c.27ef
type cipc
button 1:1 2:2 3:3
reset
R1
dial-peer voice 9 voip
destination-pattern 9[^0]T //[^0] 非0
session target ipv4:10.0.0.2
session protocol sipv2
codec g711u
no vad
dtmf-relay rtp-nte
telephony-service //修改T302的等待时间
timeouts interdigit 3
在R2上debug ccsip mess进行排错
Terminal monitor
voip不吃号
R1送号为988881111 R2的写号是88881111
voice translation-rule 9
rule 1 /^9([^0].......)$/ /1/
R1#test voice translation-rule 9 988881111
Voice translation-profile out9
Translate called 9
Dial-peer voice 9
translation-profile outgoing out9
voice translation-rule 2
rule 1 /^1001$/ /8888 /
Voice translation-profile out9
Translate calling 2
以上是北京本地电话拨号实验
再看上海长途
拨号案例
9021 66661111
R2==============================================
Voice translation-rule 90
Rule 1 /^021(6666. . ..)$/ /1/
Voice translation-profile FR-PSTN
Translate called 90
Voip-incoming translation-profile FR-PSTN
R1
Dial-peer voice 90 voip
Destination-pattern 90[^0]T
Session protocol sip
Session target ipv4:10.0.0.2
Codec g711u
No vad
Dtmf-r r
Voice translation-rule 90
Rule 1 /^90(.*)/ /01/
Voice translation-rule 3
Rule 1 /^1001$/ /0108888 /
Voice translation-profile out9
Translate calling 3
Translate called 90
Dial-peer voice 90 voip
Translation-profile outgoing out90
国际长途
R1
Dial-peer voice 900 voip
Destination-pattern 900T
Session protocol sip
Session tar ipv4:10.0.0.2
No vad
Code g711u
Dtmf-r r
R2\\
Voice translation-rule 90
Rule 2 /001212(5151111)$/ /1/
R1\\\
Voice translation-rule 900
Rule 1 /900(.*)$/ /001/
Voice translation-rule 4
Rule 1 /^1001$/ /00860108888 /
Voice translation-profile out900
Translate called 900
Translate calli 4
Dial-peer voice 900
Translation-profile outgoing out900
COR 呼叫权限控制 CSS-PT(CUCM)
每个话机权限不一致
COR 是钥匙也是锁
工作模式:对撞匹配,入向出向同时有
COR对撞表
4-8 cor知识点