AR28/AR46系列路由器拨号策略典型配置
【需求】
上海的财务部打上海的市场部,拨3366即可接通。上海的财务部打北京的市场部,拨0103366即可接通,而北京的市场部来电显示主叫号码为0211234,即为上海区号+北京财务部电话号码。
【组网图】
【配置脚本】
VGSH配置脚本
#
sysname SH
#
radius scheme system
#
domain system
#
interface Ethernet0/0
ip address 2.2.2.2 255.0.0.0
#
voice-setup /启用语音服务/
#
aaa-client
#
dial-program /进入语音拨号策略视图/
#
number-substitute 101 /配置被叫号码变换表/
rule 1 0101688 0001
rule 2 0103366 0002
#
number-substitute 102 /配置主叫号码变换表/
rule 1 1688 0210001
rule 2 3366 0210002
#
entity 010 voip /创建VoIP语音实体/
match-template 010.... /配置到北京的语音实体的被叫号码模板/
address ip 1.1.1.1 /配置到达被叫语音网关的选路策略/
substitute called 101
substitute calling 102
#
entity 1001 pots /创建POTS语音实体/
match-template 1688 /配置语音实体的被叫号码模板/
line 3/0 /配置本地端口号/
#
entity 1001 pots /创建POTS语音实体/
match-template 3366 /配置语音实体的被叫号码模板/
line 3/1 /配置本地端口号/
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
return
VGBJ配置脚本
#
sysname BJ
#
radius scheme system
#
domain system
#
interface Serial1/1
clock DTECLK1
link-protocol ppp
ip address 1.1.1.1 255.0.0.0
#
voice-setup /启用语音服务/
#
aaa-client
#
dial-program /进入语音拨号策略视图/
#
number-substitute 101 /配置被叫号码变换表/
rule 1 ^0001$ 1234
rule 2 ^0002$ 6788
#
number-substitute 102 /配置主叫号码变换表/
dot-match left-right
rule 1 ^...0001$ ...1234
rule 2 ^...0002$ ...6788
#
substitute incoming-call called 101 /配置应用号码变换规则/
substitute incoming-call calling 102
#
entity 2001 pots /创建POTS语音实体/
match-template 1234 /配置语音实体的被叫号码模板/
line 3/0 /配置本地端口号/
#
entity 2002 pots /创建POTS语音实体/
match-template 6788 /配置语音实体的被叫号码模板/
line 3/1 /配置本地端口号/
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
return
【提示】
1.首先使用number-substitute定义了号码变换的规则,然后在对应的语音实体视图下使用substitute绑定号码变换规则。
2.语音实体下的号码变换规则是匹配了语音实体以后的变换规则,所以不存在in和out的概念。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作