キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
4196
閲覧回数
0
いいね!
5
返信

ISR4331:発信元番号で発信先のPRIポートを使い分けたい

takaaki.kanda
Level 1
Level 1

ISR4331にNIM-1MFT-T1/E1を2枚搭載した環境(IOS 15.5)にてじサイト内からの外線発信時に宛先ではなく発信元番号によって、ポートの1番、2番と発信先ポートを使い分けたいのですが、そういった設定は可能でしょうか?

 

以下のサイトの表6を見ると、発番号はdnis-mapで定義するように読めますが、意図通りの動きにはなりませんでした。

https://www.cisco.com/c/ja_jp/support/docs/voice/ip-telephony-voice-over-ip-voip/211306-In-Depth-Explanation-of-Cisco-IOS-and-IO.html#anc25

 

また、answer-addressはpotsでは動作しないようでした。

https://www.cisco.com/c/ja_jp/td/docs/psbs/interoperabilitysystems/ipinteroperabilitycollabo/idg/001/12996-01/12996-01-5.html#90835

 

以下、関連しそうな設定を抜粋します。

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がヒットするようです

どなたかお知恵はありませんでしょうか?

5件の返信5

Hiroaki Usui
Cisco Employee
Cisco Employee

こんにちは。

動作確認していませんが、以下の流れで実現可能と思われます。

 

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

 

よろしくお願いします。

ご返答ありがとうございました。
頂いたヒントで実現できました。


以下に関連するであろう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

 

 

 

Kenichi Ogami
Cisco Employee
Cisco Employee

同じく動作確認しておらず申し訳ないですが、e164-pattern-map は試しましたでしょうか。

 

destination calling e164-pattern-map <pattern-map-number>

 

In Depth Explanation of Cisco IOS and IOS-XE Call Routing

 

ss 2018-11-22 10.59.50.jpg

ご返信ありがとうございました。

こちらのほうは、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

 

 

失礼しました。Inbound が VoIP で、Outbound が POTS でしたね。

VoIP Inbound Dial Peer を incoming calling e164-pattern-map で振り分けて、POTS Outbound Dial Peer を Dial Peer Group で 振り分けた inbound dial-group を指定するのはいかがでしょうか(またしても実機で確認しておらずすみません)。

 

ss 2018-12-12 16.22.08.jpg

 

ss 2018-12-12 16.22.20.jpg