Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This script shows how to build a very simple main line number covered by two receptionists. This sample uses some of the new features of the Response Group application in Microsoft Lync Server 2010:
· Attendant routing, in order to route all the calls to the agents regardless of their presence.
· Agent anonymity, in order to hide the agent’s identity to the caller.
For a detailed explanation of how this script works, see the article Creating Your First Response Group Using Lync Server Management Shell .
$ServiceId = "service:ApplicationServer:rtc.contoso.com"
$Group = New-CsRgsAgentGroup `
-Parent $ServiceId `
-Name "Contoso Reception" `
-AgentAlertTime 20 `
-ParticipationPolicy Informal `
-RoutingMethod Attendant `
-AgentsByUri("sip:mindy@contoso.com", `
"sip:bob@contoso.com")
$PromptTO = New-CsRgsPrompt `
-TextToSpeechPrompt "Sorry, all our agents are busy. `
Please call back later. Thank you."
$ActionTO = New-CsRgsCallAction `
-Prompt $PromptTO `
-Action Terminate
$PromptOF = New-CsRgsPrompt `
-TextToSpeechPrompt "Sorry, there are too many calls `
waiting. Please call back later. Thank you."
$ActionOF = New-CsRgsCallAction `
-Prompt $PromptOF `
-Action Terminate
$Queue = New-CsRgsQueue `
-Parent $ServiceId `
-Name "Contoso Reception" `
-TimeoutThreshold 300 `
-TimeoutAction $ActionTO `
-OverflowThreshold 5 `
-OverflowCandidate NewestCall `
-OverflowAction $ActionOF `
-AgentGroupIDList($Group.Identity)
$PromptWM = New-CsRgsPrompt `
-TextToSpeechPrompt "Welcome to Contoso. `
Please wait for an available agent to answer."
$ActionWM = New-CsRgsCallAction `
-Prompt $PromptWM `
-Action TransferToQueue `
-QueueID $Queue.Identity
$Workflow = New-CsRgsWorkflow `
-Parent $ServiceId `
-Name "Contoso Reception" `
-Description "The Contoso Reception line." `
-PrimaryUri "sip:reception@contoso.com" `
-LineUri "tel:+14255551234" `
-DisplayNumber "+1 (425) 555-1234" `
-Active $true `
-Anonymous $true `
-DefaultAction $ActionWM