I managed to create about 1900 concurrent calls using a single Kamailio and RTPProxy server. But after this number RTPProxy returns 0 and the following error is shown in the Kamailio log files:

incorrect port 0 in reply from rtp proxy

What is the problem here? Also number of file descriptors that RTPProxy can use are set to a million.