My blog for learning Microsoft Teams Voice Features.

2019年10月22日 星期二

如何使用 Powershell 測試Teams Direct Routing SBC連線狀態

0 comments

Microsoft 於日前(2019/Oct/18)公布一段Powershell Scipt - SIP Tester Client,可以用來測試Teams Direct Routing的SBC連線狀態。
這個SIP Test Client 包含了下列四種測試情境

  • Outbound-Inbound Call (外撥/內撥通話)
  • Simultaneous ring (共振)
  • Media Escalation (1對1通話加入第3方成為多方通話)
  • Consultative Transfer (詢問後轉接)
底下舉外撥//內撥通話測試當作例子,其他請下載SIP Tester Client, 內有詳細文件可供參考
下載網址: 

設定步驟
  • 下載SIP Tester Script 
  • 請使用管理員身分執行Powershell (該Script會自動安裝Adal.ps)
    (*) adal.ps is an authentication library which enables you to acquire tokens from Azure AD and ADFS, to access protected Web APIs (Microsoft APIs or applications registered with Azure Active Directory).
  • !** 必須關閉MFA !

🐸Outbound/Inbound Call (外撥/內撥通話)
這個測試情境會驗證外撥/內撥通話是否正常運作,並且Media可以正確無誤地在兩個端點中傳遞。對於驗證SBC的設定上很有幫助。

這個測試情境還分成
1) 使用者在同一個Tenant  (用在需要加減碼的情境)
  • TeamsOut(外撥)使用者撥打特定的外撥字頭碼(例如: +4255550189),此通電話將會Route至SBC
  • SBC上的加減碼規則會將字頭碼去除(例如成為: +5550189),建立一個新通話回撥至TeamsIn User
  • 擁有+5550189的TeamsIn User會收到來電並接通
  • Media需無誤地在兩端傳遞

2) 使用者在不同Tenant (用在不用加減碼的情境)
  • TeamsOut(外撥)使用者撥打不同Tenant(或PSTN)號碼,例如: +5550101. 此通電話將會Route至SBC.
  • SBC 看到此通電話屬於Teams, 會建立一個新通話回撥至TeamsIn User .
  • TeamsIn User 收到來電並接通
  • Media 需無誤地在兩端傳遞
3) 測試流程
  1. Script 啟動TeamsIn User的登入程序並指示該使用者會接起來電
  2. Script 啟動TeamOut User的登入程序並撥打TeamsIn User的號碼(IncomingNumber)
  3. TeamsIn User收到來電並接通,且通知Script程序
  4. Script進行下列聲音測試
    1. 指示TeamsIn User錄製聲音
    2. 指示TeamsOut User播放聲音
    3. 確認錄音檔
    4. 指示TeamsOut User錄製聲音
    5. 指示TeamsIn User播放聲音
    6. 確認錄音檔
  5. Script停止所有測試
  6. Script自CDR中擷取該通通話的資料







沒有留言:

張貼留言