RTP and RTCP port allocation

DTNA requires a contiguous block of 960 ports (480 even-numbered ports for RTP and 480 odd-numbered ports for RTCP) for a complete set of Blueworx Voice Response channels. These are allocated starting from the base value specified in the System Parameter (VoIP DTEA and DTNA Media group). For example, if the Minimum Port Number is set to 6000, Trunk 1 Channel 1 (RTP) is allocated to port 6000, Trunk 1 Channel 1 (RTCP) is allocated to port 6001, Trunk 1 Channel 2 (RTP) to port 6002, Trunk 2 Channel 1 (RTP) to port 6060 and so on, up to Trunk 16 Channel 30 (RTCP) to port 6959.

Blueworx Voice Response will start using the ports when a channel is enabled (brought into service from System Monitor). A failure will occur at this point if another application has already grabbed the same port and has not allowed it to be multiply used. In this case, the Blueworx Voice Response failure will indicate that Bind Failed with rc=67.

If another application attempts to use a port after it has been allocated by Blueworx Voice Response, the application is likely to fail in the same way unless it has specifically taken action to reuse the same port. However, in this case (with Blueworx Voice Response and another application both allocated to the same port) there are likely to be problems which may be hard to detect. Therefore care should be taken to ensure that no port overlap occurs.

Port allocation can be verified using the netstat -f inet -a command. One way to ensure that no overlap is likely to occur is to start all applications on your machine (including Blueworx Voice Response) but do not enable the DTNA trunks. You can then use netstat to examine port usage and ensure that the planned port range (starting at the default value of 6000) does not already have any allocated ports.