Yes. I finish the session at the end of each call. Also I am using rtpproxy_manage("r"). My configuration regarding RTPProxy is default config which comes with Kamailio sample config file.

On Tue, Nov 15, 2016 at 11:44 AM, Dragos Oancea <dragos.oancea@athonet.com> wrote:
Hi

Increase fs.file-max in your /etc/sysctl.conf .
eg: fs.file-max = 50000
And then do sysctl -p
Decrease SILENT_TIMEOUT in your rtpengine.conf (eg:SILENT_TIMEOUT=120) -
it's default 1 hour and if some calls don't have media then rtpengine
will just keep the UDP ports in use until this timeout expires.

Regards,
Dragos


On 15/11/2016 09:01, Daniel-Constantin Mierla wrote:
> Are you ending the rtp proxy sessions when the call are ended? What
> rtpproxy functions are you using in the configuration file?
>
> Cheers,
> Daniel
>
>
> On 14/11/16 18:18, Gholamreza Sabery wrote:
>> No not the first time. But over time. I rebooted my system and error
>> is gone! It seems that it happens over time.
>>
>> On Mon, Nov 14, 2016 at 6:12 PM, Daniel-Constantin Mierla
>> <miconda@gmail.com <mailto:miconda@gmail.com>> wrote:
>>
>>     Are you getting the error first time when you reach first 1900
>>     sessions? Or after a while, after some previous sessions are ended?
>>
>>     Cheers,
>>     Daniel
>>
>>
>>     On 14/11/16 11:19, Gholamreza Sabery wrote:
>>>     I already set these parameters:
>>>
>>>     rtpproxy -m 5000 -M 65000
>>>
>>>     As well limits for number of open files are set to 1000000
>>>     (ulimit -n). When I increased log level of RTPProxy I saw:
>>>     ERR:create_twinlistener:GENERAL: can't create IPv4 socket: Too
>>>     many open files in system
>>>
>>>
>>>     On Mon, Nov 14, 2016 at 1:46 PM, Daniel-Constantin Mierla
>>>     <miconda@gmail.com <mailto:miconda@gmail.com>> wrote:
>>>
>>>         Hello,
>>>
>>>         first thing to look at is the port range. There are some
>>>         parameter that you can provide to rtpproxy in command line in
>>>         order to increase the range of port it can use -- see
>>>         'rtpproxy -h' or 'man rtpproxy'.
>>>
>>>         Cheers,
>>>         Daniel
>>>
>>>
>>>         On 14/11/16 11:14, Gholamreza Sabery wrote:
>>>>         Dear Daniel:
>>>>
>>>>         I used a single RTPProxy instance. RTPProxy version =
>>>>         20040107. And yes there was traffic for all calls but
>>>>         traffic is one-way. One leg sends the call and the other
>>>>         just receives it.
>>>>
>>>>         On Mon, Nov 14, 2016 at 1:40 PM, Daniel-Constantin Mierla
>>>>         <miconda@gmail.com <mailto:miconda@gmail.com>> wrote:
>>>>
>>>>             Hello,
>>>>
>>>>             have you used a single rtpproxy instance? Was there RTP
>>>>             traffic for all 1900 calls? Is this with rtpproxy 1.2 or
>>>>             2.0?
>>>>
>>>>             Cheers,
>>>>             Daniel
>>>>
>>>>
>>>>             On 14/11/16 10:44, Gholamreza Sabery wrote:
>>>>>             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.
>>>>>
>>>>>
>>>>>
>>>>>             _______________________________________________
>>>>>             SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>>>             sr-users@lists.sip-router.org
>>>>>             <mailto:sr-users@lists.sip-router.org>
>>>>>             http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>>             <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>>>>
>>>>             --
>>>>             Daniel-Constantin Mierla
>>>>             http://twitter.com/#!/miconda
>>>>             <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>>>>             <http://www.linkedin.com/in/miconda>
>>>>             Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
>>>>
>>>>             _______________________________________________ SIP
>>>>             Express Router (SER) and Kamailio (OpenSER) - sr-users
>>>>             mailing list sr-users@lists.sip-router.org
>>>>             <mailto:sr-users@lists.sip-router.org>
>>>>             http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>             <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>>>>
>>>>
>>>         --
>>>         Daniel-Constantin Mierla
>>>         http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>>>         <http://www.linkedin.com/in/miconda>
>>>         Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
>>>
>>     --
>>     Daniel-Constantin Mierla
>>     http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>>     <http://www.linkedin.com/in/miconda>
>>     Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
>>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users