.. _extension_mobility_data_export:

Extension Mobility Data Export
------------------------------

.. _19.3.4-PB5|EKB-8547:
.. _21.2|EKB-8547:

Filename: ``<YYYY-MM-DD_HHMM>_extension_mobility.json.gz``

Layout:

.. tabularcolumns:: |p{4.5cm}|p{9cm}|p{1cm}|p{1cm}|

+-------------------------+---------------------------------------------------+-----------+---------+
| ELEMENT                 | DESCRIPTION AND FIELD SOURCE                      | DATA TYPE | VERSION |
+=========================+===================================================+===========+=========+
| provider_name           | Name of the Provider                              | string    | v2      |
+-------------------------+---------------------------------------------------+-----------+---------+
| reseller_name           | Name of the Reseller                              | string    | v2      |
+-------------------------+---------------------------------------------------+-----------+---------+
| customer_name           | name of the customer                              | string    | v1      |
+-------------------------+---------------------------------------------------+-----------+---------+
| division_name           | Intermediate Node (e.g                            | string    | v1      |
|                         | Division or other node)                           |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
| location_name           | Site Name                                         | string    | v1      |
+-------------------------+---------------------------------------------------+-----------+---------+
|                         | The full hierarchy path                           |           |         |
| hierarchy               | for the item being                                | string    | v1      |
|                         | exported                                          |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
| username                | the username of the owner                         | string    | v1      |
|                         | of device profile                                 |           |         |
|                         |                                                   |           |         |
|                         | device/cucm/User.userid                           |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
|                         | Model the extension                               |           |         |
| device_type             | mobility profile is setup                         | string    | v1      |
|                         | as                                                |           |         |
|                         |                                                   |           |         |
|                         | device/cucm/DeviceProfile.product                 |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
| device_profile_name     | Name of the extension                             | string    | v2      |
|                         | mobility profile                                  |           |         |
|                         |                                                   |           |         |
|                         | device/cucm/DeviceProfile.name                    |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
|                         | Array of objects                                  |           |         |
| lines                   | containing line                                   | array     | v1      |
|                         | information                                       |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
|                         | Internal Number assigned                          |           |         |
| lines.cucm_dn           | to the device profile (as                         | string    | v1      |
|                         | configured in the PBX)                            |           |         |
|                         |                                                   |           |         |
|                         | device/cucm/DeviceProfile.lines.line.dirn.pattern |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
| lines.line_order        | Line index.                                       | integer   | v2      |
|                         |                                                   |           |         |
|                         | device/cucm/DeviceProfile.lines.line.index        |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
|                         | External Number (E164                             |           |         |
| lines.E164              | number) assigned to the                           | string    | v1      |
|                         | device profile                                    |           |         |
|                         |                                                   |           |         |
|                         | device/cucm/DeviceProfile.lines.line.dirn.pattern |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
|                         | Array of E164 numbers and                         |           |         |
| E164Members             | ranges assigned to ``cucm_dn``                    | string    | v4      |
|                         | in the case of N-1 mapped lines                   |           |         |
+-------------------------+---------------------------------------------------+-----------+---------+
| E164Members.e164_number | E164 number in the case of N-1 mapped lines       | string    | v4      |
+-------------------------+---------------------------------------------------+-----------+---------+
|                         | E164 range of ``E164Members.e164_number``         |           |         |
| E164Members.e164_range  | in the case of N-1 mapped lines                   | string    | v4      |
+-------------------------+---------------------------------------------------+-----------+---------+



Example:


::

   [
   {
     "division_name": "Intermed1", 
     "username": "ba_user2", 
     "location_name": "Site1", 
     "hierarchy": "sys.822AF46F8FD3.Prov1.Resel1.Cust1.Intermed1.Intermed1_1.Site1", 
     "lines": [
       {
         "line_order": 1, 
         "cucm_dn": "50407", 
         "E164": "91107"
       }, 
       {
         "line_order": 2, 
         "cucm_dn": "50408", 
         "E164": "91108"
       }
     ], 
     "device_type": "Cisco 9971", 
     "device_profile_name": "ba_user2-UDP", 
     "reseller_name": "Resel1", 
     "provider_name": "Prov1", 
     "customer_name": "Cust1"
   },
   {
     "division_name": "Intermed2", 
     "username": "", 
     "location_name": "Site2", 
     "hierarchy": "sys.822AF46F8FD3.Prov2.Resel2.Cust2.Intermed2.Site2", 
     "lines": [], 
     "device_type": "Cisco 9971", 
     "device_profile_name": "ba_user3-UDP", 
     "reseller_name": "Resel2", 
     "provider_name": "Prov2", 
     "customer_name": "Cust2"
   }
   ]

