[Spce-user] Limit incoming concurrent calls for subscribers
Daniel Grotti
dgrotti at sipwise.com
Wed Jan 14 05:03:29 EST 2015
Hi,
it could be something like this:
...
if ($avp(s:size) >
$avp(s:caller_peer_concurrent_max))
{
xlog("L_INFO", "Concurrent_max
calls exceeded for peer '$avp(s:lcr_flags)' - [% logreq -%]\n");
$avp(s:acc_callee_user_in) = $rU;
$avp(s:acc_callee_domain_in) = $rd;
route(ROUTE_ACC_FAILURE);
$var(announce_handle) =
"max_calls_peer";
$var(announce_set) =
$avp(s:caller_sound_set);
$(avp(s:announce_code)[*]) = 403;
$(avp(s:announce_reason)[*]) =
"Maximum parallel calls exceeded";
route(ROUTE_EARLY_REJECT);
}
## test incoming
else if ($avp(s:size) >
$avp(s:caller_peer_concurrent_max) - $avp(s:caller_peer_concurrent_max_out))
{
xlog("L_INFO", "INBOUND
Concurrent_max calls exceeded for peer '$avp(s:lcr_flags)' - [% logreq
-%]\n");
$avp(s:acc_callee_user_in) = $rU;
$avp(s:acc_callee_domain_in) = $rd;
route(ROUTE_ACC_FAILURE);
$var(announce_handle) =
"max_calls_peer";
$var(announce_set) =
$avp(s:caller_sound_set);
$(avp(s:announce_code)[*]) = 403;
$(avp(s:announce_reason)[*]) =
"Maximum parallel calls exceeded";
route(ROUTE_EARLY_REJECT);
}
but be careful, it's on your risk, just an advice.
As Andreas said, we currently don't have such parameter and we do not
check concurrent incoming calls.
Daniel
On 01/14/2015 10:55 AM, Matthias Hohl wrote:
> Hello Daniel,
>
> Oh okay, that sounds good... Can you tell me, where i can exactly i can
> set this hack in code..?
> Is this maybe a option for a further release..?
>
> thanks
>
>
> -----Ursprüngliche Nachricht-----
> Von: Spce-user [mailto:spce-user-bounces at lists.sipwise.com] Im Auftrag von
> Daniel Grotti
> Gesendet: Mittwoch, 14. Jänner 2015 10:52
> An: spce-user at lists.sipwise.com
> Betreff: Re: [Spce-user] Limit incoming concurrent calls for subscribers
>
> Hi,
> you can build and hack a little bit the code and create this new
> concurrent_max_in, by testing :
>
> if ( concurrent_max - concurrent_max_out = 5) {
> ## means 5 concurrent_incoming_calls
> do something...
> }
>
>
> concurrent_max = tot out+in
> concurrent_max_out = tot out
>
>
> Daniel
>
>
>
>
> On 01/14/2015 10:48 AM, Andreas Granig wrote:
>> Hi,
>>
>> On 01/11/2015 03:02 AM, Matthias Hohl wrote:
>>> I can just find „concurrent_max_out“, concurrent_max_out_total and
>>> concurrent_max
>>>
>>> But i need the „concurrent_max_in“ setting on the webinterface.
>> Unfortunately there is no such option.
>>
>> Andreas
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> https://lists.sipwise.com/listinfo/spce-user
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
More information about the Spce-user
mailing list