在 Lync Server 2013 中创建公告

 

上次修改的主题: 2012-11-01

要创建新的通知,您需要执行以下步骤:

  1. 对于音频提示,使用喜欢的音频录制应用程序来录制音频文件。

  2. 对于音频提示,运行 Import-CsAnnouncementFile cmdlet 将音频文件的内容导入文件存储。

  3. 运行 New-CsAnnouncement cmdlet 创建并命名通知。 执行此步骤,以创建具有音频提示、文本到语音转换 (TTS) 提示或无提示的通知。

    提示

    您可能要创建无提示的通知(例如,要在不播放消息的情况下将呼叫转接到指定目标时)。

  4. 将新通知分配给未分配号码表中的号码范围。

本主题介绍如何导入和创建通知。 有关在未分配的数字表中分配公告的详细信息,请参阅 Lync Server 2013 中配置未分配的编号表

创建新通知

  1. 对于音频提示,创建音频文件。

  2. 登录到将 Lync Server Management Shell 安装为 RTCUniversalServerAdmins 组成员或具有必需用户权限的计算机,如 Lync Server 2013 中的委托设置权限中所述。

  3. 启动 Lync Server Management Shell:单击 “开始”,单击 “所有程序”,单击 Microsoft Lync Server 2013,然后单击 Lync Server Management Shell

  4. 对于音频提示,运行:

    Import-CsAnnouncementFile -Parent <service of the Application Server running the Announcement application> -FileName <name for file in File Store> -Content Byte [<contents of file in byte array>]
    
  5. 运行:

    New-CsAnnouncement -Parent <service of Application Server running the Announcement application, in the form: service:ApplicationServer:<fqdn>> -Name <unique name to be used as destination in unassigned number table> [-AudioFilePrompt <FileName specified in Import-CsAnnouncementFile>] [-TextToSpeechPrompt <text string to be converted to speech>] [-Language <Language for playing the TTS prompt (required for PromptTts)>] [-TargetUri sip:SIPAddress for transferring caller after announcement]
    

    若要将呼叫传输到语音邮件,请键入 sip:username@domainname;opaque=app:voicemail (格式的 SIPAddress,例如 sip:bob@contoso.com;opaque=app:voicemail) 。 若要将呼叫转移到电话号码,请键入 sip:number@domainname;user=phone (格式的 SIPAddress,例如 sip:+ 14255550121@contoso.com;user=phone) 。

    例如,要指定音频提示,请运行:

    $a = Get-Content ".\PromptFile.wav" -ReadCount 0 -Encoding Byte
    Import-CsAnnouncementFile -Parent service:ApplicationServer:pool0@contoso.com -FileName "ChangedNumberMessage.wav" -Content $a
    New-CsAnnouncement -Parent service:ApplicationServer:pool0.contoso.com -Name "Number Changed Announcement" -AudioFilePrompt "ChangedNumberMessage.wav"
    

    例如,要指定 TTS 提示,请运行:

    New-CsAnnouncement -Parent service:ApplicationServer:pool0.contoso.com -Name "Help Desk Announcement" -TextToSpeechPrompt "The Help Desk number has changed. Please dial 5550100." -Language "en-US"
    

    有关这些 cmdlet 的更多详细信息,若要查看 要在 TextToSpeechPrompt 参数中使用的语言代码列表,请参阅 New-CsAnnouncement