Parsing Location Policy
The location policy from the provisioned data specifies whether emergency services are enabled for the specified location. In UCMA, the location policy is encapsulated by a LocationPolicyConfiguration object, which exposes the configuration settings as a raw XML string.
The following code example shows how the media configuration might be parsed using UCMA.
string ParseLocationPolicyConfiguration(ProvisioningData data)
{
if (data == null)
return null;
string msg = null;
if (data.LocationPolicyConfiguration != null)
{
msg += "\r\nLocationPolicyConfiguration:\r\n";
msg += "\tElementXml = \r\n" + data.LocationPolicyConfiguration.ElementXml + "\r\n";
}
return msg;
}
The following is an example output generated when the code statements above are invoked.
LocationPolicyConfiguration:
ElementXml =
<property name="EnhancedEmergencyServicesEnabled" xmlns="https://schemas.microsoft.com/2006/09/sip/provisiongrouplist-notification">false</property>
<property name="LocationPolicyTagID" xmlns="https://schemas.microsoft.com/2006/09/sip/provisiongrouplist-notification">user-tagid</property>
<property name="EmergencyServiceDisclaimer" xmlns="https://schemas.microsoft.com/2006/09/sip/provisiongrouplist-notification">This location is used for emergency calls so please enter a location</property>