Well, there is one way to do that, simply shorten the port range. A typical
audio call with two way media consumes 4 ports (caller rtp + caller rtcp +
callee rtp + callee rtcp), So if you want media relay to stop accepting
calls beyond 500 concurrent calls just set port range to 2,000. For 501th
call media relay will reject telling dispatcher that its out of available
ports and dispatch will try another relay (if available) or reject call to
opensips (if no other relay) and in turn opensips will reject call with
response code 500.

Thank you.


On Fri, Feb 8, 2013 at 10:24 PM, Jeff Pyle <[email protected]> wrote:

> Hi Muhammad,
>
> My thinking is not so much in the network requirements, but only in the
> ability to artificially limit the number of calls a particular relay can
> accept at one time.  As an example, let's say I have a relay that I want to
> handle only 50 concurrent calls before it tells the dispatcher, "Sorry, I'm
> full", so the dispatcher can find another relay.
>
> If there is enough interest, perhaps it will make its way into the feature
> list at some point in the future.
>
>
> - Jeff
>
>
>
> On Fri, Feb 8, 2013 at 3:38 PM, Muhammad Shahzad <[email protected]>wrote:
>
>> There is no software limit but rather available bandwidth that limits
>> number of concurrent calls as far as media proxy is concerned.
>> Theoretically a G711A/U call (with two way media) requires roughly 160 kbps
>> bandwidth, which yields around 640 concurrent calls on 100 mbps connection.
>> And if you have say iLBC or G729 call (with two way media) then should be
>> able to handle around 5 times more. However this assumes that you have
>> dedicated / consistant bandwidth which is only used by RTP traffic, which
>> almost never happens in practice, since there are always some other
>> services running using network.
>>
>> Thank you.
>>
>>
>> On Fri, Feb 8, 2013 at 5:17 PM, Saúl Ibarra Corretgé <
>> [email protected]> wrote:
>>
>>>
>>> > How does one configure the maximum number of calls per relay?
>>> >
>>>
>>> There is no such a setting :-)
>>>
>>> --
>>> Saúl Ibarra Corretgé
>>> AG Projects
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [email protected]
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>>
>> --
>> Muhammad Shahzad
>> -----------------------------------
>> CISCO Rich Media Communication Specialist (CRMCS)
>> CISCO Certified Network Associate (CCNA)
>> Cell: +49 176 99 83 10 85
>> MSN: [email protected]
>> Email: [email protected]
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: [email protected]
Email: [email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to