Voice translationとSIP profile1 / 7

Rule→Profile→適用先

Voice translation-ruleに順序付き正規表現を定め、translation-profileへcalling/called等の対象を割り当て、incoming/outgoingのpeerやportへ適用する。数字の変換と非数値URI/headerの書換えは区別する。

voice translation-rule 10
 rule 1 /^9\(.*\)/ /\1/
!
voice translation-profile OUT-NUMBER
 translate called 10
!
dial-peer voice 100 voip
 translation-profile outgoing OUT-NUMBER
!
test voice translation-rule 10 90123456789

先頭9を除去してcalled numberを0123456789とする例である。callingへ適用すると、発信番号を変更する。Rule番号の順に評価し、先に広い一致があると後のspecific ruleへ進まない。

学習パスへ
参考資料