Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Limit Media Ports in Office Communications Server 2007 R2 Devices

Communications Server 2007 R2

Administration of Office Communications Server 2007 R2 often involves configuration of clients, such as enabling voice and conferencing features and sending additional settings to clients. Frequently, the ability to limit media ports used by Communications Server 2007 R2 clients is required. Read on to find out more about how to perform this task.

Author: Tonino Filipovic

Publication date: July 2010

Product version: Office Communications Server 2007 R2

Administration of Office Communications Server 2007 R2, apart from server administration, often involves configuration of clients, such as enabling voice and conferencing features, sending additional settings to clients, and setting limits where needed.

These tasks can be achieved in multiple ways, including the following:

  • Group policy
  • In-band provisioning
  • Registry editing
  • Client UI (such as the Options button in Office Communicator)

Administrators are frequently required to limit media ports that are used by Communications Server 2007 R2 clients. This particular task is straightforward to perform for Office Communicator 2007 R2 clients through group policy. For details, see Media Port Range Registry Keys.

However, Office Communicator 2007 R2 Phone Edition is not configurable through group policy and to achieve the same result with Communicator Phone Edition, you have to edit relevant server-side pool settings so devices can receive this information through in-band provisioning in the SIP channel.

This section explains how to edit relevant server-side pool settings so that devices receive port information.

  1. Check current settings that Communicator Phone Edition obtains through in-band provisioning. One way to do this is to download the phone log from the device. However, a simpler solution is to turn on logging on the SIP stack component by using the Office Communications Server 2007 R2 Logging Tool from the Office Communications Server Administration snap-in as shown in Figure 1. For details, see Using Office Communications Server 2007 R2 Logging Tool.
    ea94de11-1196-41c5-ac3a-ffa95c3efc43
  2. Select the SIPStack component, and then, in the Flags section, select All Flags.
  3. Click Start Logging.
  4. Start the device.
  5. After the user logs on to the device, click Stop Logging in the Logging Tool.
    noteNote:
    To view and analyze protocol messages, you must install the Microsoft Office Communications Server 2007 R2 Resource Kit Tools. The Resource Kit includes the Snooper tool, which provides this functionality. The Resource Kit also includes documentation for using the tool.
  6. Filter the captured file for the ucPortRangeEnabled keyword and the IP address of your device to get the relevant packet: 200 OK response to the client’s SUBSCRIBE request as shown in Figure 2.
    bc9b797b-8ea5-48bd-bd3e-6249149f95a0
    Figure 2 shows that ucPortRangeEnabled is set to False, which means that the media port range is not limited for devices at all (note also the default ucMinMediaPort and ucMaxMediaPort settings because these are the settings you are going to change).
  7. Because these settings are pool-level settings (contained in the MSFT_SIPClientPortSettings WMI class), you first need to export pool-level configuration to be able to change settings as needed.
  8. Before either exporting or importing configuration settings, stop the Office Communications Server 2007 R2 services.
    noteNote:
    It is highly recommended that you back up your Communications Server environment before you make any configuration changes. In addition, the Office Communications Server 2007 R2 services should be stopped before doing an export of pool settings. Therefore, it is also recommended that such actions be conducted during maintenance hours.
  9. To export pool configuration, use the LCSCmd command with the export option:
    LCSCmd /config /action:export /configfile:<filename>.xml /level:pool
    7e9c7a44-efae-4abc-a96b-ad6683829d2a
  10. Open the XML file by using your favorite editor, and then search for the MSFT_SIPClientPortSettings section.
  11. Change the PortRangeEnabled setting to True.
  12. Set the MinMediaPort and MaxMediaPort settings to the port range that you want to use (this example uses 5350 through 5389) as shown in Figure 4.
    acfdcd4f-7ce2-485d-a89b-a1e0c26b8ad8
    noteNote:
    Make sure to dedicate a range of at least 40 ports for media to accommodate for call transfer and all conference escalation scenarios. For details, see Media Port Range for Office Communications Server 2007 R2.
  13. Save the XML file.
  14. Import the settings back to the pool by using the following command:
    LCSCmd /config /action:import /configfile:<filename>.xml /level:pool
  15. Start the Office Communications Server 2007 R2 services.
  16. Restart the device.
  17. Use the Logging Tool to ensure that the new configuration is applied to the devices as shown in Figure 5.
    54eb642c-0958-46f6-b185-fbdaebb59fd3
  18. At this point your device should have the correct settings (ucPortRangeEnabled = True, MinMediaPorts and MaxMediaPorts show correct values).
noteNote:
Apart from Office Communicator Phone Edition devices, these settings also affect your Office Communicator clients. However, if you used group policy to limit media ports for Communicator clients, group policy settings take precedence over settings received through in-band provisioning. For details about order of precedence, see Communicator 2007 R2 Group Policy.

This article describes how to limit media ports used by your Office Communicator clients as well as your Office Communicator Phone Edition devices.

Because devices cannot be controlled by group policy, you need to configure relevant pool-level settings that will be sent to devices by means of in-band provisioning over SIP.

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.