Shared Line Across Sites Configuration Procedures
-------------------------------------------------

Most of the configuration for Shared Lines Across Sites is the same as
with conventional lines, but this section provides procedures to
highlight the differences.

For conventional site-local lines, the lines can be configured
automatically as part of the Phone, Subscriber, or Quick Add Subscriber
workflows; the lines do not need to be configured separately first.

For lines to be shared across sites, they must be configured first in
the Inventory Site, then referenced from Phone, Subscriber, or Quick Add
Subscriber workflows.


Configure Shared Line Across Sites - Customer
.............................................

The customer configuration is similar except that you create DN
inventory at the customer hierarchy for lines you would like to share
(or potentially share) across sites.

1. Configure the Cisco Unified Communications Manager and Cisco Unity Connection
   devices. These can be at the customer level (dedicated) or above (shared).
2. Configure the customer normally (for example, c2).
3. Configure the Network Device List (NDL) for the customer (for example, c2Ndl)
   that will be used for your site group (NDL/Country combination).
4. Deploy the customer dial plan. This must be a flat dial plan (for example,
   Type 4) because shared lines across site dictates that DNs cannot be
   site-specific. The Type 4 dial plan does not impose site-specific structure
   (in other words, site location codes). When configuring the customer dial plan,
   ensure that the Site Location Code check box is unchecked.
5. Configure the DN inventory to be used across sites for shared lines
   (**Dial Plan Management > Number Management > Directory Number Inventory**). Note
   that you should leave the site drop-down list empty to create the inventory on
   the Customer hierarchy node.



Configure Shared Line Across Sites - Inventory Site
...................................................

The "Inventory" Site is only needed if you want to configure Shared
Lines Across Sites. If you do not have this requirement you do not need
an Inventory Site and configuration is exactly as it is done normally.
Most of the Inventory Site configuration is the same as configuration
for a real site (for example, deploy site dial plan, configure DN
inventory, and so on). The areas that are unique to the Inventory Site
are provided in Steps 1, 3, and 5.

1. Configure the Inventory Site and specify the NDL and Country, for example,
   c2InventorySite. A different Inventory Site is needed for each NDL/Country
   combination (site group). If the customer only has one NDL and one Country,
   they only need one Inventory Site.
2. Deploy the site dial plan (Type 4 will automatically be used based on the
   customer dial plan that was deployed).
3. Create the new Classes of Service to be used as the default line CSS and
   update the Site Defaults procedure for the Inventory Site. Refer to :ref:`class_of_service_for_shared_line_across_sites` for more information.
4. Configure Directory Number Routing (DNR) for the shared lines (**Dial
   Plan Management > Site > Directory Number Routing**).
5. Create line relations for each shared line (**Subscriber Management > Line**).
6. Create E.164 inventory (**Dial Plan Management > Number Management > Add E164 Inventory**).
7. Associate E.164 to DN (**Dial Plan Management > Number Management > E164 Associations (N to N)**.
8. Configure Hunt Groups that use shared lines (**Subscriber Management > Hunt Groups**).
9. Configure Call Pickup Groups that use shared lines (**Subscriber Management > Call Pickup Groups**).


Configure Shared Line Across Sites - Real Site
..............................................

Configuration at the real sites is almost exactly the same as in past
Cisco HCS releases. The major difference is that the Shared Lines Across
Sites exist at the Inventory Site and therefore any configuration
associated with those lines (CoS, DNR, E.164 associations, and so on)
exists at the Inventory Site.

1.  Configure the real site (for example c2s1, c2s2, and so on). Use the same NDL
    and Country as the Inventory Site (same site group).
2.  Deploy the site dial plan on each of the real sites (again, the customer dial
    plan enforces that the flat dial plan is used).
3.  Create DN inventory for an DNs that will be used only at this site.
4.  Create Directory Number Routing (DNR) for any DNs created at this site.
5.  Create E.164 inventory and associations for an DNs created at this site.
6.  Create Device Class of Service if needed. Refer to :ref:`class_of_service_for_shared_line_across_sites`.
7.  Create Line Class of Service if needed for your site-specific lines.
    Refer to :ref:`class_of_service_for_shared_line_across_sites`.
8.  Configure subscribers and phones (**Subscriber Management >
    Subscribers, Quick Add Subscriber**, or **Phones**).
    
    a. When configuring normal lines (lines that are not shared across sites),
       select a line from the local site DN inventory, not the customer-level DN
       inventory. The line is created at the local site as normal; you can
       configure line CoS, DNR, E.164 associations at this site as normal. Note
       that this includes shared lines that are only shared within the site.
    b. When configuring a shared line across sites, select a customer-level DN
       from the drop-down list. Remember, the line should be configured at the
       Inventory Site first.
       
9.  Configure site-specific Hunt Groups that use lines local to the real site.
10. Configure site-specific Call Pickup Groups that use lines local to the real
    site.