取消
显示结果 
搜索替代 
您的意思是: 
cancel
5251
查看次数
32
有帮助
9
回复

语音网关配置translation

zhangjijun
Level 1
Level 1
现在有一台语音网关,出口是FXO,电话号码都注册到CUCM,现在想把老板的号码作为一对一映射出去,不需要经过总机转换。但是配置了voice translation-rule 1
rule 1 /8021/ /63732009/
voice translation-rule 2
rule 1 /63732009/ /8021/
voice translation-rule 3
rule 1 /^.*$/ /9\0/
voice translation-profile fr-pstn
voice translation-profile to-pstn
voice-port 0/0/0
translation-profile incoming fr-pstn
voice-port 0/0/1
translation-profile incoming fr-pstn
voice-port 0/0/2
translation-profile incoming fr-pstn
voice-port 0/0/3(该接口号码为63732009)
translation-profile incoming fr-pstn
translation-profile outgoing to-pstn
但是配置完成后,还是不生效,有没有大神可以看下?
9 条回复9

ghostlee1
Level 1
Level 1
voice translation-profile fr-pstn
voice translation-profile to-pstn
你这只是定义了两个 profile,但是你没有写明 这两个profile调用了什么转换;
你要加上类似这样的:
voice translation-profile fr-pstn
translate called 2
voice translation-profile to-pstn
translate calling 1
意思是fr-pstn的转换profile对被叫使用voice translation-rule 2

ghostlee1
Level 1
Level 1
voice translation-profile fr-pstn
translate called 2
voice translation-profile to-pstn
translate called 1

zhangjijun
Level 1
Level 1
ghostlee 发表于 2018-8-14 23:48
voice translation-profile fr-pstn
voice translation-profile to-pstn
你这只是定义了两个 profile,但 ...

voice translation-rule 1
rule 1 /8021/ /63732009/
voice translation-rule 2
rule 1 /63732009/ /8021/
voice translation-rule 3
rule 1 /^.*$/ /9\0/
voice translation-profile fr-pstn
translate calling 3
translate called 2
voice translation-profile to-pstn
translate calling 1
voice-port 0/0/0
translation-profile incoming fr-pstn
voice-port 0/0/1
translation-profile incoming fr-pstn
voice-port 0/0/2
translation-profile incoming fr-pstn
voice-port 0/0/3
translation-profile incoming fr-pstn
translation-profile outgoing to-pstn
我写了3个translation-rule,
1是把内线号码转换成外部直线号码,直接出去。
2是把外部打进来的直线号码转换为内部号码。
3是让打进来的所有号码全部加9,这样可以直接回拨。
但是测试仍然没办法把8021电话转换成63732009出去(8021打出去的号码仍然是4个FXO号码随机出去)
,外线打进来也没办法匹配规则直接转换成8021响铃。
63732009对应的是voice-port 0/0/3的接口。

ghostlee1
Level 1
Level 1
jijunzhang 发表于 2018-8-15 22:27
voice translation-rule 1
rule 1 /8021/ /63732009/
voice translation-rule 2

从接口的角度看,话机到网关叫 incoming.,此时要对主叫做转换,voice translation-rule 1 /8021/ /63732009/
所以应该是
voice-port 0/0/3
translation-profile incoming to-pstn 对incoming的呼叫调用 to-pstn的转换即调用了voice translation-rule 1
才对吧

zhangsx779542
Level 1
Level 1
楼主 你的问题解决了吗?

zhangjijun
Level 1
Level 1
zhangsx779542 发表于 2019-7-8 16:17
楼主 你的问题解决了吗?

后来我自己测试了下,应该是解决了。

zhangsx779542
Level 1
Level 1
jijunzhang 发表于 2019-7-8 23:45
后来我自己测试了下,应该是解决了。

还记得是以什么方式解决的吗?

zhangjijun
Level 1
Level 1
zhangsx779542 发表于 2019-7-9 09:40
还记得是以什么方式解决的吗?

你的环境是什么样的呢?和我这边一样吗?还是怎么说?

zhangsx779542
Level 1
Level 1
jijunzhang 发表于 2019-7-9 14:37
你的环境是什么样的呢?和我这边一样吗?还是怎么说?

环境跟你的几乎是一样的,只是我这边有十路电话,有1-2路需要做到某分机独占一条线路出局,就是该分机拨打外线,显示的是固定的一条线路号码
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接