.. _concepts-config-mapping-files:


.. rst-class:: chapter-with-expand


Configuration Mapping Files
---------------------------

Phone, device, and line configuration mappings allow a higher level administrator,
e.g. BAP Administrator to better manage and control the lists of items available
for selection on the GUI, as well as the ability to define the settings and
templates used for each item.


.. _concepts-config-BAP-phone-configuration-mapping:

Phone Configuration Mapping
...........................

The Phone and Device Profile mappings serve a number of purposes. These
allow a higher level administrator to:

* Control the list of phone types available for selection.
* Define the configuration settings used when a specific phone type is
  selected.
* Define a set of "feature" templates that can be selected by the lower
  level administrator.


**Phone Profiles**

These mapping profiles define a list of phone types that can be selected
along with:

* Custom name (profile name) for the phone type
* The actual phone type
* Protocol
* Button Template
* Security Profile
* Configuration Template (CFT)

|new-bap-config-image3|


The Profile Name is what will be presented in dropdowns to the lower level
administrator inside the Business Admin Portal.

For example, if the administrator selects "Default (6901)", then the phone will be
provisioned as a Cisco 6691 SIP device with Standard 6901 SIP button
template and the Cisco 6901 - Standard SIP Non-Secure Profile security
profile. Additionally, all configuration captured in Basic Phone CFT will
also be used.

|new-bap-config-image5|


**Feature Templates**

The "Feature Templates" section of the Phone and Device Profile config
mapping allows a higher level administrator to configure a list of feature
templates. These will be presented to the BAP administrator user for selection
when adding a Phone or Extension Mobility and will contain configuration
settings that is applied on top of the settings mentioned above.

|new-bap-config-image1|

|new-bap-config-image8|



**Configuration Template Input Contexts**

The following context macro variables are available when defining configuration
templates for the phone mappings above.


+------------------------------------------+----------------------------------------+
| Macro                                    |   Description                          |
+==========================================+========================================+
|                                          |  Flag whether it is a standalone phone |
| ``{{ input.standalone }}``               |  or being associated with a            |
|                                          |  Subscriber.                           |
+------------------------------------------+----------------------------------------+
|                                          |  Username of the Subscriber the phone  |
| ``{{ input.username }}``                 |  is being associated with. Only when   |
|                                          |  standalone is false.                  |
+------------------------------------------+----------------------------------------+
|                                          |  The user selected device type. This   |
| ``{{ input.device_type }}``              |  in fact is the Phone mapping profile  |
|                                          |  name.                                 |
+------------------------------------------+----------------------------------------+
| ``{{ input.template_name }}``            |  The user selected feature template.   |
+------------------------------------------+----------------------------------------+
| ``{{ input.name }}``                     |  The user entered phone name.          |
+------------------------------------------+----------------------------------------+
| ``{# input.lines #}``                    |  The user entered list of lines.       |
+------------------------------------------+----------------------------------------+
| ``{{ input.lines.0.directory_number }}`` |   The number of the first line.        |
+------------------------------------------+----------------------------------------+
| ``{{ input.lines.0.template_name }}``    |  The user selected Line template.      |
+------------------------------------------+----------------------------------------+
| ``{{ input.lines.0.label }}``            |  The user entered line label.          |
+------------------------------------------+----------------------------------------+
| ``{{ input.lines.0.display }}``          |  The user entered line display.        |
+------------------------------------------+----------------------------------------+
|                                          |  Object containing all UCM user        |
| ``{{ pwf.user }}``                       |  settings of the associated            |
|                                          |  subscriber. Only when standalone is   |
|                                          |  false.                                |
+------------------------------------------+----------------------------------------+



.. |new-bap-config-image3| image:: /src/images/new-bap-config-image3.png
.. |new-bap-config-image5| image:: /src/images/new-bap-config-image5.png
.. |new-bap-config-image8| image:: /src/images/new-bap-config-image8.png
.. |new-bap-config-image1| image:: /src/images/new-bap-config-image1.png



.. _concepts-config-BAP-device-profile-configuration-mapping:

Device Profile Configuration Mapping
....................................

The setup for Device Profile configuration mapping is identical to that
for Phone Configuration Mappings.

The phone type list and feature templates are presented to the BAP administrator
when adding an Extension Mobility service on the Subscriber management
dashboard.

|new-bap-config-image7|


.. |new-bap-config-image7| image:: /src/images/new-bap-config-image7.png



.. _concepts-config-BAP-line-templates-configuration-mapping:

Line Templates
..............

A list of line templates can be configured and these will be presented to
the BAP administrator when new lines are be created, for example when adding a new
phone.

|new-bap-config-image2|

.. |new-bap-config-image2| image:: /src/images/new-bap-config-image2.png