VoIP Router/Gateway Match Call Setup Element Parameters Order List

當我們在設定VoIP Gaetway時,我們必須要注意Router是如何match撥號內容來決定利用那一個dial-peer(很多人會誤解第一個檢查的是destination-pattern,事實上不然),甚至inbound和outbound dial peers也是完全不同的match rule:

Match Inbound Dial Peers Rule(by full string received in the setup request)

1. incoming called-number
首先Router或Gateway會嘗試去match call setup請求中被撥打的電話號碼(called number),因此會先檢查dail-peer中是否有設定incoming called-number參數。

2. answer-address
如果dial-peer中沒有incoming called-number參數符合被撥打的電話號碼(called number),Router或Gateway會嘗試去match call setup請求中的來電電話號碼(calling number)是否有符合某個dial-peer中設定的answer-address參數。

3. destination-pattern
如果dial-peer中沒有answer-address參數符合來電電話號碼(calling number),Router或Gateway會嘗試去match call setup請求中的來電電話號碼(calling number)是否有符合某個dial-peer中設定的destination-pattern參數。

4. port
如果incoming call setup請求來自於特定的voice port,利用這個voice port number來match inbound call leg中dial-peer設定的port參數。

5. Fist dial-peer added to the configuration(不是dial peer number最小的喔):
如果有多個dial peers設定了相同的voice port,Router或Gateway會match第一個加入到configuration中的dial peer。

6. dial peer 0
如果之前的步驟都沒有符合的條件,預設會進入到dial peer 0

PS: dial-peer 0無法改變預設參數。

Note: Dial peer 0 for inbound VoIP peers default configuration

  • any codec
  • ip precedence 0
  • vad enabled
  • no rsvp support
  • fax-rate service

Note: Dial peer 0 for outbound VoIP peers default configuration

  • no ivr application

Match Outbound Dial Peers Rule(by digit-by-digit basis)

1. destination-pattern
Router或Gateway利用dial-peer中設定的destination-pattern參數來決定要使用那一個dial peer進行路由。(The dial peer with closest match is selected)
2. 如果有多個dial peer符合情況相同,將會選擇擁有最小preference組態設定的dial peer。

3. 如果dial peer中的preference數值相同,那麼將會動態(dynamic)選擇任一個dial peer。


port or session target
dial-peer設定組態將利用下列其中一種設置指令來決定從那裏轉送通話:

- POTS dial peers使用port指令
- VoIP dial peers使用session target指令

#show dialplan number string
使用show dialplan number string指令來判斷那一個dial peer被matched特定撥號字串。這個指令會依照順序顯示所有已經被使用的matching dial peers。

Comments

Popular posts from this blog

TCP/IP 明確擁塞通知 (ECN)

L2TPv3 Enables Layer 2 Services for IP Networks

Q-in-Q(Dot1Q Tunnel) Sample Configuration