キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
12218
閲覧回数
16
いいね!
0
コメント
Kenichi Ogami
Cisco Employee
Cisco Employee

 

はじめに

Cisco Webex Calling クラウド電話システムに接続する ローカルゲートウェイ (LGW: Local Gateway) の設定例を紹介します。本ドキュメントでは、ローカルゲートウェイを Webex Calling クラウドに登録後、Webex Calling クラウドからローカルゲートウェイ経由で PSTN (PRI) にコールする設定について説明します。

 

本ドキュメントの内容は、2021 年 7 月 1 日時点の情報および IOS-XE 17.3.3 の構成を前提としています。最新の情報は以下の情報を確認してください。

 

call.png

 

ローカルゲートウェイのルーティングの設定

 

設定概要

本ドキュメントでは、ローカルゲートウェイにおいて、下記の設定を使って Webex Calling クラウドと PSTN 間をルーティングする方法を紹介します。説明の関係上、関連する設定を前もって作成しなければならない場合があることを、あらかじめご了承ください。PRI の設定は既に完了していることを前提としています。

Webex Calling クラウド側の設定 (20x)

  • Incoming および Outgoing ダイヤルピア (dial-peer voice 200201 voip)
  • ダイアルピアグループ (voice class dpg 200)
  • SIP プロファイル (voice class sip-profiles 200)
  • テナント (voice class tenant 200)
  • STUN (voice class stun-usage 200)
  • URI (voice class uri 200)

PSTN (PRI) 側の設定 (10x)

  • Incoming ダイヤルピア (dial-peer voice 100 pots)
  • Outgoing ダイヤルピア (dial-peer voice 101 pots)
  • ダイヤルピアグループ (voice class dpg 100)
  • トランクグループ (trunk-group ISDN)

 

wxc_routing.png

 

Webex Calling クラウドから PSTN へのルーティング

ローカルゲートウェイが Webex Calling クラウドから SIP INVITE を受信してルーティングを実施し、PRI へ Q.931 SETUP を送信する設定について説明します。PSTN (PRI) 側から VoIP 側にさかのぼって設定していきます。

 

トランクグループの設定

Outgoing ダイヤルピアに紐付けるためのトランクグループを設定し、PRI のインタフェースに紐付けます。

conf t
 trunk group ISDN
!
 interface Serial0/0/0:23
  no ip address
  encapsulation hdlc
  isdn switch-type primary-ntt
  isdn incoming-voice voice
  trunk-group ISDN
  end

 

Outgoing 番号変換 (Outgoing-to-ISDN)

宛先番号や発信元番号が E.164 番号 (例: +81312341111) の場合に適切な番号に変換します。

voice translation-rule 3 は PRI へ発信時における発信者番号の変換ルールです。通信事業者によっては、市外局番を削除しないと網側で代表番号に強制上書きされる場合があるため、この例では市外局番の 3 を削除しています(例: +81312341111 から 12341111 に変換)。環境によって適切に変更してください。

参考: 音声変換プロファイルを使用した番号変換

conf t
voice translation-rule 1
rule 1 /^\+81/ /0/
rule 2 /\+\(.*\)/ /010\1/
exit
voice translation-rule 3
rule 1 /^\+813/ //
exit

 voice translation-profile Outgoing-to-ISDN
  translate calling 3
  translate called 1
  exit

 

Outgoing ダイヤルピアの設定 (dial-peer voice 101 pots)

PSTN 向けの Outgoing ダイヤルピアを作成し、既に作成したトランクグループや変換プロファイルを紐付けます。

Webex Calling クラウドに登録された Webex Calling App や MPP 電話機からダイヤルされた発信は、下記の番号に変換されてローカルゲートウェイに着信します。

  • 市内・市外番号: E.164 番号 (例: +813xxxxxxxx) に変換
  • 国際電話 (010 から始まる番号): E.164 番号に変換
  • 国際電話 (001 から始まる番号): 変換なし (001 から始まる番号のままで着信)
  • 特番 (1XY): 変換なし (1XY のままで着信)
conf t
 dial-peer voice 101 pots
  trunkgroup ISDN
  description Outgoing dial-peer to PSTN
  translation-profile outgoing Outgoing-to-ISDN
  destination-pattern BAD.BAD
  forward-digits all
  exit

 

宛先ダイヤルピアグループの設定 (voice class dpg 100)

既に作成した Outgoing ダイヤルピア 101 を選択するために、ダイヤルピアグループ 100 を設定します。後ほど Incoming ダイヤルピア作成時に紐付けます。

conf t
voice class dpg 100

description Incoming WxC (DP200201) to PSTN (DP101)
dial-peer 101 preference 1

 end

 

Webex Calling クラウドからの着信の特定 (voice class uri 200 sip)

Webex Calling クラウドからの着信を voice class uri を使って識別します。Webex Calling クラウドからローカルゲートウェイに送信される SIP INVITE の Request-URI には dtg パラメータが付与され、Control Hub に設定されているトランクグループのパラメータが設定されます。

(例:INVITE sip:+81312341111@192.168.43.197:5061;transport=tls;dtg=lgw06676_lgu SIP/2.0)

voice class uri 200 sip には、Control Hub でローカルゲートウェイを設定した時に表示された [Trunk Group OTG/DTG] を設定します。pattern はアンダースコア (_) には対応していないため、Trunk Group OTG/DTG のアンダースコア (_) を、任意の文字列を示すピリオド (.) に変換して設定します(例: pattern dtg=lgw06676.lgu)。

 

Trunk Group OTG/DTG: トランクグループ (例: lgw06676_lgu)

conf t
voice class uri 200 sip

pattern dtg={Trunk Group OTG/DTG (アンダースコアをピリオドに変更)}
end

 

例:
conf t
voice class uri 200 sip

 pattern dtg=lgw06676.lgu
end

 

Incoming ダイヤルピアの設定 (dial-peer voice 200201 voip)

Webex Calling クラウドから受信するための Incoming ダイヤルピアを作成します。先程作成した voice class uri 200 および宛先ダイヤルピアグループ 100 を紐付けます。合わせて、Webex Calling - ローカルゲートウェイの設定例 (2: LGW の登録)で作成した voice class codec 99 と voice class stun-usage 200 と voice-class sip tenant 200 を紐付けます。

conf t
dial-peer voice 200201 voip

description Inbound/Outbound Webex Calling
session protocol sipv2
destination dpg 100
incoming uri request 200
voice-class codec 99
voice-class stun-usage 200
no voice-class sip localhost
voice-class sip tenant 200
dtmf-relay rtp-nte
srtp
no vad
end

 

 

PSTN から Webex Calling クラウドへのルーティング

ローカルゲートウェイが PRI から SETUP を受信してルーティングを実施し、Webex Calling クラウドへ SIP INVITE を送信する設定について説明します。VoIP 側から PSTN (PRI) 側にさかのぼって設定していきます。

 

Outgoing 番号変換 (Incoming-from-ISDN)

Webex Calling クラウド向けの宛先番号および発信者番号を E.164 番号に変換します。

voice translation-rule 2 は、通信事業者によっては、宛先番号から市外局番が削除されている場合があるため、この例では市外局番 3 を付与しています。(例: 12342222 から +81312342222)。環境によって適切に変更してください。

conf t
voice translation-rule 2

rule 1 /^/ /+813/
exit
voice translation-rule 4
rule 1 /^0/ /+81/
exit
voice translation-profile Incoming-from-ISDN
translate calling 4
translate called 2

 

Outgoing ダイヤルピアの設定 (dial-peer voice 200201 voip)

先程作成したダイヤルピア 200201 に Webex Calling クラウド向けの Outgoing の設定を追加します。voice class tenant 200 に設定された sip-server に INVITE が送信されます。

conf t
 dial-peer voice 200201 voip
  description Inbound/Outbound Webex Calling
  translation-profile outgoing Incoming-from-ISDN
  destination-pattern BAD.BAD
  session protocol sipv2
  session target sip-server
destination dpg 100
incoming uri request 200
voice-class codec 99
voice-class stun-usage 200
no voice-class sip localhost
voice-class sip tenant 200
dtmf-relay rtp-nte
srtp
no vad
end

 

宛先ダイヤルピアグループの設定 (voice class dpg 200)

既に作成した Outgoing ダイヤルピア 200201 を選択するために、ダイヤルピアグループ 200 を設定します。後ほど Incoming ダイヤルピア作成時に紐付けます。

conf t
 voice class dpg 200
description Incoming PSTN (DP100) to WxC (DP200201)
  dial-peer 200201 preference 1

  end

 

Incoming ダイヤルピアの設定 (dial-peer voice 100 pots)

incoming called-number . を設定し、POTS (PRI) からのコールをダイヤルピア 100 で受信するように設定します。先程作成した宛先ダイヤルピアグループ 200 を紐付けます。

conf t
dial-peer voice 100 pots
description Incoming dial-peer from PSTN

trunkgroup ISDN
destination dpg 200
incoming called-number .
end

 

その他の設定

PRI の設定

日本で ISDN (PRI) に接続するための設定例です。

conf t
card type t1 0 1
!
network-clock synchronization automatic
no network-clock synchronization participate 0/1
!

isdn switch-type ntt
!

voice call send-alert
voice rtp send-recv
!

controller T1 0/1/0
framing esf
clock source line primary
linecode b8zs
cablelength long 0db
pri-group timeslots 1-24
exit


interface Serial0/1/0:23
no ip address
encapsulation hdlc
isdn switch-type primary-ntt
isdn incoming-voice voice
exit

参考:

 

同時接続数、システムリソースの閾値による制限

設定 (max-conn) によって、着信ダイヤルピアの同時接続数を一般的なインターネットによる接続方法の最大値である 250 に制限することができます。専用線 (Equinix) の場合は 500 となります。また、設定 (call threthold) によって、全体コール数、メモリ、CPU の閾値によって制限することができます。

 

conf t
dial-peer voice 200201 voip

description In/Out WxC
max-conn 250
...

 

conf t
call treatment on

call threshold global cpu-avg low 75 high 80
call threshold global total-mem low 75 high 80
call threshold global total-calls low 250 high 250

 

冗長化対応

Control Hub にて、ルートグループを使った冗長化設定を行う場合、PRI ダウン時に Webex Calling クラウド側に SIP 503 レスポンスを返すために以下の設定が必要となります。

conf t
no dial-peer outbound status-check pots

 

緊急通報のブロック

Webex Calling は、その特性上、正しい位置情報を緊急機関に伝えることができないケースが想定されるため、ローカルゲートウェイ経由での緊急通報をブロックする必要があります。

以下の通り、110 (警察), 118 (海上保安庁), 119 (消防) へのコールをブロックするプロファイルを作成し、Webex Calling からの着信を受ける Incoming ダイヤルピアでコールブロックを設定します。

voice translation-rule 200
 rule 1 reject /^110$/
 rule 2 reject /^118$/
 rule 3 reject /^119$/
!
voice translation-profile Call-Block
 translate called 200
!
dial-peer voice 200201 voip
 call-block translation-profile incoming Call-Block

 

ローカルゲートウェイにおける緊急通報の扱いについては、以下のドキュメントもご参照ください。

 

最終設定例

REGISTER 登録の設定を含めた最終的な設定例は以下の通りです。色がついた箇所を適切に変更してください。

登録ドメイン (Registrar Domain): 81213435.jp10.bcld.webex.com
トランクグループ OTG/DTG (Trunk Group OTG/DTG)
: lgw06676_lgu
回線/ポート (Line/Port): LGW02623_LGU  ( @の前を使用します)
発信プロキシ アドレス (Outbound Proxy Address): ty10.sipconnect-jp.bcld.webex.com
ユーザ名 (Username): LGW06676_LGU
パスワード (Password):  qgOqfn--3(

 

!
card type t1 0 1
!
network-clock synchronization automatic
no network-clock synchronization participate 0/1
!

clock timezone jst 9 0
!
ip name-server 8.8.8.8
!
key config-key password-encrypt Password123$
password encryption aes
!

isdn switch-type ntt
!
trunk group ISDN
!
crypto pki trustpoint dummyTp
revocation-check crl
!
crypto pki trustpool import clean url http://www.cisco.com/security/pki/trs/ios_core.p7b
!

voice call send-alert
voice rtp send-recv
!
voice service voip
ip address trusted list
  ipv4 85.119.56.0 255.255.254.0
ipv4 128.177.14.0 255.255.255.0
ipv4 128.177.36.0 255.255.255.0
ipv4 135.84.168.0 255.255.248.0
ipv4 139.177.64.0 255.255.248.0
ipv4 139.177.72.0 255.255.254.0
ipv4 185.115.196.0 255.255.252.0
ipv4 199.19.196.0 255.255.254.0
ipv4 199.19.199.0 255.255.255.0
ipv4 199.59.64.0 255.255.248.0

media statistics
media bulk-stats
allow-connections sip to sip
no supplementary-service sip refer
no supplementary-service sip handle-replaces
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
stun
stun flowdata agent-id 1 boot-count 4
stun flowdata shared-secret 0 Password123$
sip
early-offer forced
g729 annexb-all
!
voice class uri 200 sip
pattern dtg=lgw06676.lgu
!
voice class codec 99

codec preference 1 g711ulaw
!
voice class stun-usage 200
stun usage firewall-traversal flowdata
stun usage ice lite
!
voice class sip-profiles 200
 rule 9 request ANY sip-header SIP-Req-URI modify "sips:(.*)" "sip:\1"
rule 10 request ANY sip-header To modify "<sips:(.*)" "<sip:\1"
rule 11 request ANY sip-header From modify "<sips:(.*)" "<sip:\1"
rule 12 request ANY sip-header Contact modify "<sips:(.*)>" "<sip:\1;transport=tls>"
rule 13 response ANY sip-header To modify "<sips:(.*)" "<sip:\1"
rule 14 response ANY sip-header From modify "<sips:(.*)" "<sip:\1"
rule 15 response ANY sip-header Contact modify "<sips:(.*)" "<sip:\1"

rule 20 request ANY sip-header From modify ">" ";otg=lgw06676_lgu>"
rule 30 request ANY sip-header P-Asserted-Identity modify "<sips:" "<sip:"
rule 31 request ANY sip-header From modify "From: <sip:\+81(.*)@" "From: \"0\1\" <sip:+81\1@"

!
voice class dpg 100
description Incoming WxC (DP200201) to PSTN (DP101)

dial-peer 101 preference 1
!
voice class dpg 200
description Incoming PSTN (DP100) to WxC (DP200201)
dial-peer 200201 preference 1
!

voice class tenant 200
registrar dns:81213435.jp10.bcld.webex.com scheme sips expires 240 refresh-ratio 50 tcp tls
credentials number LGW02623_LGU username LGW06676_LGU password qgOqfn--3( realm BroadWorks
authentication username LGW06676_LGU password qgOqfn--3( realm BroadWorks
authentication username LGW06676_LGU password qgOqfn--3( realm 81213435.jp10.bcld.webex.com
no remote-party-id
sip-server dns:81213435.jp10.bcld.webex.com
connection-reuse
srtp-crypto 200
session transport tcp tls
url sips
error-passthru
asserted-id pai
bind control source-interface GigabitEthernet0/0/0
bind media source-interface GigabitEthernet0/0/0
no pass-thru content custom-sdp
sip-profiles 200
outbound-proxy dns:ty10.sipconnect-jp.bcld.webex.com
privacy-policy passthru
!
voice class srtp-crypto 200
crypto 1 AES_CM_128_HMAC_SHA1_80
!
voice translation-rule 1
rule 1 /^\+81/ /0/
rule 2 /\+\(.*\)/ /010\1/
!
voice translation-rule 2
rule 1 /^/ /+813/
!
voice translation-rule 3
rule 1 /^\+813/ //
!
voice translation-rule 4
rule 1 /^0/ /+81/
!
voice translation-rule 200
rule 1 reject /^110$/
rule 2 reject /^118$/
rule 3 reject /^119$/
!

voice translation-profile Incoming-from-ISDN
translate calling 4
translate called 2
!
voice translation-profile Outgoing-to-ISDN
translate calling 3
translate called 1
!
voice translation-profile Call-Block
translate called 200
!

controller T1 0/1/0
framing esf
clock source line primary
linecode b8zs
cablelength long 0db
pri-group timeslots 1-24
!
interface GigabitEthernet0/0/0
description internet
ip address 192.168.43.197 255.255.255.0
negotiation auto
!
interface Serial0/1/0:23
no ip address
encapsulation hdlc
isdn switch-type primary-ntt
isdn incoming-voice voice
trunk-group ISDN
!
ip route 0.0.0.0 0.0.0.0 192.168.43.254
!
call treatment on
call threshold global cpu-avg low 75 high 80
call threshold global total-mem low 75 high 80
call threshold global total-calls low 150 high 150
!
dial-peer voice 100 pots
trunkgroup ISDN
description Incoming dial-peer from PSTN
destination dpg 200
incoming called-number .
!
dial-peer voice 101 pots
trunkgroup ISDN
description Outgoing dial-peer to PSTN
translation-profile outgoing Outgoing-to-ISDN
destination-pattern BAD.BAD
forward-digits all
!

dial-peer voice 200201 voip
 description Inbound/Outbound Webex Calling
max-conn 250
translation-profile outgoing Incoming-from-ISDN
call-block translation-profile incoming Call-Block
destination-pattern BAD.BAD
session protocol sipv2
session target sip-server
destination dpg 100
incoming uri request 200
voice-class codec 99
voice-class stun-usage 200
no voice-class sip localhost
voice-class sip tenant 200
dtmf-relay rtp-nte
srtp
no vad
!
no dial-peer outbound status-check pots
!

sip-ua
transport tcp tls v1.2
crypto signaling default trustpoint dummyTp cn-san-validate server
tcp-retry 1000

!

 

参考情報

 

 

Getting Started

検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう

シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします