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的接口。