2018-11-15 01:49 PM
ISR4331にNIM-1MFT-T1/E1を2枚搭載した環境(IOS 15.5)にてじサイト内からの外線発信時に宛先ではなく発信元番号によって、ポートの1番、2番と発信先ポートを使い分けたいのですが、そういった設定は可能でしょうか?
以下のサイトの表6を見ると、発番号はdnis-mapで定義するように読めますが、意図通りの動きにはなりませんでした。
また、answer-addressはpotsでは動作しないようでした。
以下、関連しそうな設定を抜粋します。
voice dnis-map 10
dnis 1234
voice dnis-map 11
dnis 4321
dial-peer voice 100 pots
description ##Outbound PSTN##
translation-profile outgoing toPSTN
preference 1
dnis-map 10
destination-pattern 0T
port 0/1/0:23
dial-peer voice 111 pots
description ##Outbound PSTN##
translation-profile outgoing toPSTN
preference 1
dnis-map 11
destination-pattern 0T
port 0/2/0:23
dial-peer hunt 2
現時点ではpreferenceもdestination-pattern も同じであるため、ランダムにdial-peerがヒットするようです
どなたかお知恵はありませんでしょうか?
2018-11-22 10:50 AM 2018-11-22 10:54 AM 更新
こんにちは。
動作確認していませんが、以下の流れで実現可能と思われます。
1. 発信者番号で着信 voip dial-deerをマッチさせる (answer-address)
2. 発信ポートを分けるため、translation ruleで着信番号に特定のprefixを付与
3 .発信pots dial-peerで同prefixをはずす
以下の記事も参考になるかと思います。
https://community.cisco.com/t5/ip-telephony-and-phones/dial-peer-check-ani/td-p/2193624
よろしくお願いします。
2018-12-12 01:59 PM
ご返答ありがとうございました。
頂いたヒントで実現できました。
以下に関連するであろうVoice Gatewayの設定を記載します。
ーーーーーーーーーー
voice translation-rule 1
rule 1 /^\(0.*\)$/ /98\1/
!
voice translation-rule 2
rule 1 /^\(0.*\)$/ /99\1/
voice translation-profile fromCUCM01
translate called 1
!
voice translation-profile fromCUCM02
translate called 2
dial-peer voice 101 voip
description ##Inbound CUCM01##
translation-profile incoming fromCUCM01
preference 1
answer-address 1234
session protocol sipv2
session target ipv4:CUCMのIPアドレス
voice-class codec 1
voice-class sip dtmf-relay force rtp-nte
dtmf-relay rtp-nte
ip qos dscp cs3 signaling
no vad
dial-peer voice 102 voip
description ##Inbound CUCM02##
translation-profile incoming fromCUCM02
preference 1
answer-address 4321
session protocol sipv2
session target ipv4:CUCMのIPアドレス
voice-class codec 1
voice-class sip dtmf-relay force rtp-nte
dtmf-relay rtp-nte
ip qos dscp cs3 signaling
no vad
dial-peer voice 201 pots
description <<Outbound Port1>>
preference 1
destination-pattern 98T
port 0/1/0
dial-peer voice 202 pots
description <<Outbound Port2>>
preference 1
destination-pattern 99T
port 0/1/1
メモなど
・dial-peer voice XX voiceは既存設定ではCUCM宛の発信ダイアルピアとして利用していた。
コピペしたままだとtranslation-profile outgoingを指定していて、このままだと着信ダイアルピアとして
機能しない。
translation-profile incomingと指定して解決。
・voice translation-rule が意図通りに適用されるかのテスト方法は以下
router>test voice translation-rule 1 117
意図通りにヒットした場合の実行結果
Matched with rule 1
Original number: 117 Translated number: 98117
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
意図通りにヒットしなかった場合の実行結果
117 Didn't match with any of rules
2018-11-22 11:02 AM
同じく動作確認しておらず申し訳ないですが、e164-pattern-map は試しましたでしょうか。
destination calling e164-pattern-map <pattern-map-number>
In Depth Explanation of Cisco IOS and IOS-XE Call Routing
2018-12-12 04:08 PM
ご返信ありがとうございました。
こちらのほうは、dial-peerのvoiceのほうに"destination e164-pattern-map"という設定があったため、answer-addressでヒットしていたdial-peerの設定を以下のように変更しましたが、dial-peerにヒットしなくなりました。
(debug voice ccapi inoutで見たところ Incoming Dial-peer=0でした)
もう少し試行錯誤してみます。
追加:
voice class e164-pattern-map 1
e164 1234
変更後のdial-peer:
dial-peer voice 102 voip
description ##Inbound CUCM01##
translation-profile incoming fromCUCM01
preference 1
session protocol sipv2
session target ipv4:CUCMのIPアドレス
destination e164-pattern-map 1
voice-class codec 1
voice-class sip dtmf-relay force rtp-nte
dtmf-relay rtp-nte
ip qos dscp cs3 signaling
no vad
2018-12-12 04:27 PM
失礼しました。Inbound が VoIP で、Outbound が POTS でしたね。
VoIP Inbound Dial Peer を incoming calling e164-pattern-map で振り分けて、POTS Outbound Dial Peer を Dial Peer Group で 振り分けた inbound dial-group を指定するのはいかがでしょうか(またしても実機で確認しておらずすみません)。
エキスパートの回答、ステップバイステップガイド、最新のトピックなどお気に入りのアイデアを見つけたら、あとで参照できるように保存しましょう。
コミュニティは初めてですか?これらのヒントを活用してスタートしましょう。 コミュニティの活用方法 新メンバーガイド