<div dir="ltr">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.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 15, 2016 at 11:44 AM, Dragos Oancea <span dir="ltr"><<a href="mailto:dragos.oancea@athonet.com" target="_blank">dragos.oancea@athonet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
Increase fs.file-max in your /etc/sysctl.conf .<br>
eg: fs.file-max = 50000<br>
And then do sysctl -p<br>
Decrease SILENT_TIMEOUT in your rtpengine.conf (eg:SILENT_TIMEOUT=120) -<br>
it's default 1 hour and if some calls don't have media then rtpengine<br>
will just keep the UDP ports in use until this timeout expires.<br>
<br>
Regards,<br>
Dragos<br>
<span class=""><br>
<br>
On 15/11/2016 09:01, Daniel-Constantin Mierla wrote:<br>
> Are you ending the rtp proxy sessions when the call are ended? What<br>
> rtpproxy functions are you using in the configuration file?<br>
><br>
> Cheers,<br>
> Daniel<br>
><br>
><br>
> On 14/11/16 18:18, Gholamreza Sabery wrote:<br>
>> No not the first time. But over time. I rebooted my system and error<br>
>> is gone! It seems that it happens over time.<br>
>><br>
>> On Mon, Nov 14, 2016 at 6:12 PM, Daniel-Constantin Mierla<br>
</span><span class="">>> <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>> wrote:<br>
>><br>
>> Are you getting the error first time when you reach first 1900<br>
>> sessions? Or after a while, after some previous sessions are ended?<br>
>><br>
>> Cheers,<br>
>> Daniel<br>
>><br>
>><br>
>> On 14/11/16 11:19, Gholamreza Sabery wrote:<br>
>>> I already set these parameters:<br>
>>><br>
>>> rtpproxy -m 5000 -M 65000<br>
>>><br>
>>> As well limits for number of open files are set to 1000000<br>
>>> (ulimit -n). When I increased log level of RTPProxy I saw:<br>
>>> ERR:create_twinlistener:<wbr>GENERAL: can't create IPv4 socket: Too<br>
>>> many open files in system<br>
>>><br>
>>><br>
>>> On Mon, Nov 14, 2016 at 1:46 PM, Daniel-Constantin Mierla<br>
</span><span class="">>>> <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>> wrote:<br>
>>><br>
>>> Hello,<br>
>>><br>
>>> first thing to look at is the port range. There are some<br>
>>> parameter that you can provide to rtpproxy in command line in<br>
>>> order to increase the range of port it can use -- see<br>
>>> 'rtpproxy -h' or 'man rtpproxy'.<br>
>>><br>
>>> Cheers,<br>
>>> Daniel<br>
>>><br>
>>><br>
>>> On 14/11/16 11:14, Gholamreza Sabery wrote:<br>
>>>> Dear Daniel:<br>
>>>><br>
>>>> I used a single RTPProxy instance. RTPProxy version =<br>
>>>> 20040107. And yes there was traffic for all calls but<br>
>>>> traffic is one-way. One leg sends the call and the other<br>
>>>> just receives it.<br>
>>>><br>
>>>> On Mon, Nov 14, 2016 at 1:40 PM, Daniel-Constantin Mierla<br>
</span><span class="">>>>> <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>> wrote:<br>
>>>><br>
>>>> Hello,<br>
>>>><br>
>>>> have you used a single rtpproxy instance? Was there RTP<br>
>>>> traffic for all 1900 calls? Is this with rtpproxy 1.2 or<br>
>>>> 2.0?<br>
>>>><br>
>>>> Cheers,<br>
>>>> Daniel<br>
>>>><br>
>>>><br>
>>>> On 14/11/16 10:44, Gholamreza Sabery wrote:<br>
>>>>> I managed to create about 1900 concurrent calls using a<br>
>>>>> single Kamailio and RTPProxy server. But after this<br>
>>>>> number RTPProxy returns 0 and the following error is<br>
>>>>> shown in the Kamailio log files:<br>
>>>>><br>
>>>>> incorrect port 0 in reply from rtp proxy<br>
>>>>> What is the problem here? Also number of file<br>
>>>>> descriptors that RTPProxy can use are set to a million.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> ______________________________<wbr>_________________<br>
>>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>>>>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
</span>>>>>> <mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-<wbr>router.org</a>><br>
>>>>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<span class="">>>>>> <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a>><br>
>>>><br>
>>>> --<br>
>>>> Daniel-Constantin Mierla<br>
>>>> <a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a><br>
</span>>>>> <<a href="http://twitter.com/#%21/miconda" rel="noreferrer" target="_blank">http://twitter.com/#%21/<wbr>miconda</a>> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a><br>
<span class="">>>>> <<a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a>><br>
>>>> Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
>>>><br>
>>>> ______________________________<wbr>_________________ SIP<br>
>>>> Express Router (SER) and Kamailio (OpenSER) - sr-users<br>
>>>> mailing list <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
</span>>>>> <mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-<wbr>router.org</a>><br>
>>>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<span class="">>>>> <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a>><br>
>>>><br>
>>>><br>
>>> --<br>
>>> Daniel-Constantin Mierla<br>
</span>>>> <a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> <<a href="http://twitter.com/#%21/miconda" rel="noreferrer" target="_blank">http://twitter.com/#%21/<wbr>miconda</a>> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a><br>
<span class="">>>> <<a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a>><br>
>>> Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
>>><br>
>> --<br>
>> Daniel-Constantin Mierla<br>
</span>>> <a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> <<a href="http://twitter.com/#%21/miconda" rel="noreferrer" target="_blank">http://twitter.com/#%21/<wbr>miconda</a>> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a><br>
<span class="im HOEnZb">>> <<a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a>><br>
>> Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
>><br>
> --<br>
> Daniel-Constantin Mierla<br>
> <a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a><br>
> Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
><br>
><br>
><br>
</span><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
><br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div></div></blockquote></div><br></div>