I am curious how you are trying to go about this. Are you letting users who are on the internet into your network, or are you allowing people who are inside your network access a Definity that is outside your network, or are you simply segmenting and firewalling your internal network?
If you are allowing Internet attached users into your network, you may have trouble with any dynamically assigned ports on the server end, but it sounds like Avaya uses just the assigned ports.
Also, if the users are doing NAT on their end (many ISPs do this) then the Definity may not set up the call at all.
Have you tried it with the firewall in bypass mode, just to be certain that your configuration works?
What I have read in RFC 1889 and 1890 indicates that the RTP and RTCP ports can be dynamically assigned, because we would be dealing with unicast sessions. However, there is nothing that says that Lucent developed their system with dynamic port assignment. Just because it is allowed, doesn't mean that it must be that way.
Excerpt from RFC 1889:
-----------------------------------------------------------
RTP session: The association among a set of participants communicating with RTP. For each participant, the session is defined by a particular pair of destination transport addresses (one network address plus a port pair for RTP and RTCP). The destination transport address pair may be common for all participants, as in the case of IP multicast, or may be different for each, as in the case of individual unicast network addresses plus a common port pair. In a multimedia session, each medium is carried in a separate RTP session with its own RTCP packets. The multiple RTP sessions are distinguished by different port number pairs and/or different multicast addresses.
-----------------------------------------------------------
Excerpt from RFC 1890:
-----------------------------------------------------------
Applications operating under this profile may use any such UDP port pair. For example, the port pair may be allocated randomly by a session management program. A single fixed port number pair cannot be required because multiple applications using this profile are likely to run on the same host, and there are some operating systems that do not allow multiple processes to use the same UDP port with different multicast addresses.
However, port numbers 5004 and 5005 have been registered for use with this profile for those applications that choose to use them as the default pair. Applications that operate under multiple profiles may use this port pair as an indication to select this profile if they are not subject to the constraint of the previous paragraph.
Applications need not have a default and may require that the port pair be explicitly specified. The particular port numbers were chosen to lie in the range above 5000 to accomodate port number allocation practice within the Unix operating system, where port numbers below 1024 can only be used by privileged processes and port numbers between 1024 and 5000 are automatically assigned by the operating system.
-----------------------------------------------------------
I have worked with platforms that use static port numbers for the RTP and RTCP, and it is possible to put them behind a firewall. I've also had problems with NAT, especially when the system uses the source IP address as the call identifier.
Don't forget that you should need to add TCP port 5005 to support the RTCP.