Executing Unified Messaging grammar generation

Executing Unified Messaging grammar generation

Generating grammar files

    Requires Free Membership to View

    When you register, you’ll also receive targeted alerts from my team of editorial writers and independent industry experts with the latest news, tips, and advice to help you do your job more efficiently and effectively. Our goal is to keep you informed on the hottest topics and biggest challenges faced by Exchange professionals today working with Exchange, Outlook and other related technologies.

    Margie Semilof, Editorial Director

    By submitting your registration information to SearchExchange.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchExchange.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

This is part #13 from "Microsoft Exchange Server 2007 Unified Messaging for administrators," excerpted from Chapter 9 of the book Microsoft Exchange Server 2007: The Complete Reference, published by McGraw-Hill Osborne Media.
Exchange 2007 Unified Messaging server roles include the English language pack by default. This provides grammar files used by the Unified Messaging server speech engine to recognize words and phrases that a caller might use to interact with Automatic Speed Recognition (ASR).

The grammar files also define what options are available to a caller. When the Exchange Unified Messaging servers are deployed, they generate the grammar files based on default settings. The default settings will work fine the majority of the time, but Microsoft recommends that grammar generation be performed manually under the following circumstances:

  • When you complete a new installation of the Unified Messaging server role
  • After creating a new UM dial plan, UM Auto Attendant, custom address list or custom distribution list
  • After creating UM-enabled users
  • After modifying a UM dial plan
  • After modifying a UM Auto Attendant

By default, grammar generation occurs every day at 2:00 A.M. The schedule can be modified with Set-UMserver in the EMS.

To make sure that the very first users of the Unified Messaging services are able to connect without errors, you should plan on running the executable galgrammargenerator.exe as the last step in the deployment process before allowing users to access the Unified Messaging servers. The grammar files are updated when:

  • Unified Messaging servers join a UM dial plan
  • Default or custom update schedules occur
  • The file galgrammargenerator.exe is manually run

The galgrammargenerator.exe tool should be used to force an update when changes occur in the organization that affect the users' ability to find other recipients. As a side benefit, the tool can be used to repair missing or corrupted grammar files. Table 6 lists all the possible switches available with the tool.

Switch Description
-d <dialplan> Creates a grammar file for a specified UM dial plan.
-g Generates the grammar file.
-l Generates a grammar file for a distribution list.
-o Generates a log file. The default path is UnifiedMessagingTemp.
-p Preloads all generated grammars into the Microsoft Speech Server platform.
-s <UMserver> Creates a grammar file for each UM dial plan to which the specified Unified Messaging server belongs.
-u Creates or updates DTMF maps for users who are enabled for UM and who are not enabled for UM.
-x Defines the speech filter list that is used in XML format.
Table 6 Galgrammargenerator.exe parameters

The recommended command to issue after the initial deployment of a Unified Messaging Server is:

Galgrammargenerator.exe -s


Microsoft Exchange Server 2007 Unified Messaging for administrators

 Home: Introduction to Unified Messaging on Exchange 2007
 Part 1: An intro to voice systems for Exchange administrators
 Part 2: Unified Messaging features in Exchange Server 2007
 Part 3: Defining Exchange Unified Messaging architecture
 Part 4: Deploying Unified Messaging servers on Exchange Server 2007
 Part 5: Comparing VoIP PBX solutions for Unified Messaging
 Part 6: Integrating Unified Messaging servers with a VoIP solution
 Part 7: Creating a Unified Messaging Dial Plan
 Part 8: Configuring a Unified Messaging IP gateway
 Part 9: Mailbox policy configuration for Unified Messaging
 Part 10: Creating and assigning a Unified Messaging hunt group
 Part 11: Dialing rules and restrictions for Unified Messaging users
 Part 12: Assigning Unified Messaging dialing rules to a mailbox policy
 Part 13: Executing Unified Messaging grammar generation
 Part 14: Enabling Unified Messaging mailboxes and users

This chapter excerpt from Microsoft Exchange Server 2007: The Complete Reference, by Richard Luckett, William Lefkovics and Bharat Suneja, is printed with permission from McGraw-Hill Osborne Media, Copyright 2008.

Click here for the chapter download or purchase the book here.

This was first published in January 2009