Parsing media configuration
Applies to: Lync 2013 | Lync Server 2013
In Microsoft Unified Communications Managed API (UCMA), a media configuration is encapsulated by a MediaConfiguration object, which exposes the configuration settings as a collection of name-value pairs known as the properties of the media configuration.
The following code example shows how the media configuration might be parsed by using UCMA.
string ParseMediaConfiguration(ProvisioningData data)
{
if (data == null)
return null;
string msg = null;
if (data.MediaConfiguration != null && data.MediaConfiguration.Properties != null)
{
msg += "\r\nMediaConfiguration:\r\n";
foreach (string key in data.MediaConfiguration.Properties.Keys)
{
msg += "\tProperty[ " + key + " ] = " + data.MediaConfiguration.Properties[key] + "\r\n";
}
}
return msg;
}
The following example output is generated when the previous code statement is invoked.
MediaConfiguration:
Property[ propertyentrylist ] =
<property name="bypassEnabled" xmlns="http://schemas.microsoft.com/2006/09/sip/provisiongrouplist-notification">true</property>
<property name="internalBypassMode" xmlns="http://schemas.microsoft.com/2006/09/sip/provisiongrouplist-notification">Any</property>
<property name="externalBypassMode" xmlns="http://schemas.microsoft.com/2006/09/sip/provisiongrouplist-notification">Off</property>
See also
Concepts
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for