Location API
The Location feature is used to route calls locally to the agent available in the branch office, rather than routing calls to central or main office over a WAN link. In Cisco Unified Call Manager (CUCM), locations are created to implement the call admission control. The call admission control helps to regulate audio quality and video availability by limiting the amount of bandwidth that is available for audio and video calls over links between the locations.
The Location API is used to fetch or create new locations, and update the configuration by assigning the Location code and Ingress Gateway.
https://<server>/unifiedconfig/config/location
Operations
Parameters
-
refURL: Required. The refURL of the location configured in Packaged CCE. See Shared Parameters.
-
locationName: Required. The name of the location configured in CUCM. See Shared Parameters.
-
description: Optional. See Shared Parameters.
-
datacenters: The datacenters of the location. For remote sites, returns a reference to the data center, including the refURL and name.
-
locationCode: Required. A unique location code that is prefixed or suffixed to the ICM label for routing the calls to the gateway.
-
ucmPrimaryKey: Required. Location Primary Key ID fetched from CUCM that is used by CVP to create unique identifier for the location.
-
cucmHostAddress: The IP address of the CUCM Publisher device where locations are configured.
-
changeStamp: See Shared Parameters.
-
gateways: Gateway associated with the location. You can add only one gateway to a location.
Search and Sort Values
The following table shows the parameters that are searched and the parameters that are sortable.
Search parameters | Sort parameters |
---|---|
|
|
Advanced search parameters
The Location API also supports advanced search parameters, such as gateway and datacenters.
-
gateway:<IPaddress/hostname>: Finds the location associated to the specified hostname or IP address of the gateway. The hostname is fully matched (case-insensitive, no partial matches).
-
datacenter:<dcName> Returns all locations which belong to the specified data center. You can specify only one data center. The data center name is fully matched (case-insensitive, no partial matches). Searching for "core" returns all locations in the core data center.
Example Get Response
Following are the REST responses received when the REST API runs to configure the location:
-
Success - Configuration changes persist in AW DB and synchronized with respective devices.
Code: 200
Response: Successfully saved
-
Partial Success - Configuration changes persist in AW DB, but failed to synchronize with one or more devices.
Code: 201
Response: Configuration update failed for one or more devices. (This occurs when the AW DB is updated but Sync with CVP failed.)
Code: 503
Response: The server is currently busy. Please try again later. (This occurs when data synchronization to a device is in progress.)
Example API error: -
Failure- The configuration updates to AW DB is failed.