在 Lync Server 2013 中測試對等音訊/視頻通話Testing peer to peer audio/video call in Lync Server 2013

 

主題上次修改日期: 2014-06-05Topic Last Modified: 2014-06-05

驗證排程Verification schedule

每日Daily

測試控管Testing tool

Windows PowerShellWindows PowerShell

必要的權限Permissions required

使用 Lync Server 管理命令介面在本機執行時,使用者必須是 RTCUniversalServerAdmins 安全性群組的成員。When run locally using the Lync Server Management Shell, users must be members of the RTCUniversalServerAdmins security group.

使用 Windows PowerShell 的遠端實例執行時,必須為使用者指派具有執行 Test-CsP2PAV Cmdlet 許可權的 RBAC 角色。When run using a remote instance of Windows PowerShell, users must be assigned an RBAC role that has permission to run the Test-CsP2PAV cmdlet. 若要查看可使用此 Cmdlet 的所有 RBAC 角色清單,請從 Windows PowerShell prompt 中執行下列命令:To see a list of all RBAC roles that can use this cmdlet, run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets -match "Test-CsP2PAV"}

描述Description

Test-CsP2PAV 是用來判斷一組測試使用者是否可以參與對等 A/V 交談。Test-CsP2PAV is used to determine whether a pair of test users can participate in a peer-to-peer A/V conversation. 若要測試此案例,指令程式會從兩個使用者登入 Lync Server,以啟動 Cmdlet。To test this scenario, the cmdlet starts off by logging on the two users to Lync Server. 假設這兩次登入都成功,則第一位使用者會邀請第二位使用者加入 A/V 呼叫。Assuming that the two logons succeed, the first user then invites the second user to join an A/V call. 第二位使用者接受通話時,會測試兩位使用者之間的連線,然後結束通話,然後從系統中登出測試使用者。The second user accepts the call, the connection between the two users is tested, and then the call is ended and the test users are logged off from the system.

Test-CsP2PAV 實際上不會進行 A/V 通話。Test-CsP2PAV does not actually conduct an A/V call. 測試使用者間的多媒體資訊不會互換。Multimedia information is not exchanged between the test users. 相反地,此 Cmdlet 只會驗證是否可以進行適當的連線,以及兩位使用者是否可以進行這類呼叫。Instead, the cmdlet merely verifies that the appropriate connections can be made and that the two users can conduct such a call.

如需詳細資訊,請參閱 Test-CsP2PAV Cmdlet 的說明文件。For more information, see the Help documentation for the Test-CsP2PAV cmdlet.

執行測試Running the test

您可以使用一對預先設定的測試帳戶來執行 Test-CsP2PAV Cmdlet (請參閱設定測試帳戶以執行 Lync Server 測試) 或任何兩個已啟用 Lync Server 之使用者的帳戶。The Test-CsP2PAV cmdlet can be run using either a pair of preconfigured test accounts (see Setting Up Test Accounts for Running Lync Server Tests) or the accounts of any two users who are enabled for Lync Server. 若要使用測試帳戶執行此檢查,您只需要指定所測試之 Lync Server 集區的 FQDN。To run this check using test accounts, you just have to specify the FQDN of the Lync Server pool being tested. 例如:For example:

Test-CsP2PAV -TargetFqdn "atl-cs-001.litwareinc.com"

若要使用實際使用者帳戶執行這項檢查,您必須為每個帳戶 (包含帳戶名稱和密碼) 的物件建立兩個 Lync Server 身分憑證物件。To run this check using actual user accounts, you must create two Lync Server credentials objects (objects that contain the account name and password) for each account. 當您呼叫 Test-CsP2PAV 時,您必須包含這兩個帳戶的認證物件和 SIP 位址:You must then include those credentials objects and the SIP addresses of the two accounts when you call Test-CsP2PAV:

$credential1 = Get-Credential "litwareinc\kenmyer"
$credential2 = Get-Credential "litwareinc\davidlongmire"
Test-CsP2PAV -TargetFqdn "atl-cs-001.litwareinc.com" -SenderSipAddress "sip:kenmyer@litwareinc.com" -SenderCredential $credential1 -ReceiverSipAddress "sip:davidlongmire@litwareinc.com" -ReceiverCredential $credential2

決定成功或失敗Determining success or failure

如果兩個測試使用者可以完成對等 A/V 呼叫,則會收到與結果屬性標示為「成功」類似的輸出 If the two test users can complete a peer-to-peer A/V call, then you'll receive output similar to this with the Result property marked as Success:

TargetFqdn: atl-cs-001.litwareinc.comTargetFqdn : atl-cs-001.litwareinc.com

結果:成功Result : Success

延遲:00:00:06.8630376Latency : 00:00:06.8630376

錯誤:Error :

診斷:Diagnosis :

如果測試使用者無法完成通話,則結果會顯示為 [失敗],而且會在 [錯誤] 和 [診斷] 屬性中記錄其他資訊:If the test users can't complete the call, then the Result will be shown as Failure, and additional information will be recorded in the Error and Diagnosis properties:

TargetFqdn: atl-cs-001.litwareinc.comTargetFqdn : atl-cs-001.litwareinc.com

結果:失敗Result : Failure

延遲:00:00:00Latency : 00:00:00

錯誤:480,暫時無法使用Error : 480, Temporarily Unavailable

診斷: ErrorCode = 15030,Source = atl-cs-001,Reason = FailedDiagnosis : ErrorCode=15030,Source=atl-cs-001.litwareinc.com,Reason=Failed

路由傳送至 Exchange Serverto route to Exchange Server

DiagnosticHeader。Microsoft.Rtc.Signaling.DiagnosticHeader

例如,上一個輸出會指出測試失敗,因為無法與 Microsoft Exchange Server 取得聯繫。For example, the previous output states that the test failed because the Microsoft Exchange Server couldn't be contacted. 這項錯誤訊息通常表示 Exchange 整合通訊的設定發生問題。This error message typically indicates a problem the configuration of Exchange Unified Messaging.

如果 Test-CsP2PAV 失敗,則您可能想要重新執行測試,這次包括 Verbose 參數:If Test-CsP2PAV fails then you might want to rerun the test, this time including the Verbose parameter:

Test-CsP2PAV-TargetFqdn "atl-cs-001.litwareinc.com"-VerboseTest-CsP2PAV -TargetFqdn "atl-cs-001.litwareinc.com" -Verbose

包含 Verbose 參數時,Test-CsP2PAV 將會傳回其嘗試的每個動作的逐步帳戶,以檢查指定使用者登入 Lync 伺服器的能力。When the Verbose parameter is included, Test-CsP2PAV will return a step-by-step account of each action it tried as it checked the ability of the specified user to log on to Lync Server. 例如,假設測試失敗併發生下列診斷:For example, suppose that your test failed with the following Diagnosis:

ErrorCode = 6003,Source = atl-ws-01-cs-001,Reason = 不支援的對話方塊要求ErrorCode=6003,Source=atl-cs-001.litwareinc.com,Reason=Unsupported out of dialog request

如果您重新執行 Test-CsP2PAV 並包含 Verbose 參數,您會收到類似以下的輸出:If you rerun Test-CsP2PAV and include the Verbose parameter, you'll get output similar to this:

詳細:「註冊」活動已開始。VERBOSE: 'Register' activity started.

傳送註冊要求:Sending Registration request:

目標 Fqdn = atl-cs-011.litwareinc.comTarget Fqdn = atl-cs-011.litwareinc.com

使用者 Sip 位址 = sip:kenmyer@litwareinc.comUser Sip Address = sip:kenmyer@litwareinc.com

註冊機構埠 = 5062。Registrar Port = 5062.

已選取驗證類型 ' IWA '。Auth Type 'IWA' is selected.

無法註冊端點的例外狀況。An exception 'The endpoint was unable to register. 如需特定原因,請參閱 ErrorCode。 'See the ErrorCode for specific reason.' 在工作流程 SyntheticTransactions 中發生 STP2PAVWorkflow 執行。occurred during workflow Microsoft.Rtc.SyntheticTransactions.Workflows.STP2PAVWorkflow execution.

雖然它可能不會立即顯而易見,但如果您仔細檢查輸出,您會看到不正確的註冊埠 (埠 5062) 指定。Although it might not be immediately obvious, if you examine the output carefully you’ll see that an incorrect Registrar port (port 5062) was specified. 進而又導致測試失敗。In turn, that caused the test to fail.

測試可能失敗的原因Reasons why the test might have failed

以下是一些 Test-CsP2PAV 可能失敗的常見原因:Here are some common reasons why Test-CsP2PAV might fail:

  • 您指定的使用者帳戶無效。You specified a user account that is not valid. 您可以執行類似如下的命令,以確認使用者帳戶是否存在:You can verify that a user account exists by running a command similar to this:

    Get-CsUser "sip:kenmyer@litwareinc.com"Get-CsUser "sip:kenmyer@litwareinc.com"

  • 使用者帳戶有效,但目前未啟用 Lync Server 的帳戶。The user account is valid, but the account is currently not enabled for Lync Server. 若要確認是否已為 Lync Server 啟用使用者帳戶,請執行類似下列的命令:To verify that a user account is enabled for Lync Server, run a command similar to the following:

    Get-CsUser "sip:kenmyer@litwareinc.com" | Select-Object Enabled
    

    如果 Enabled 屬性設定為 False,表示目前未啟用 Lync Server 的使用者。If the Enabled property is set to False, that means that the user is currently not enabled for Lync Server.