[Spce-user] Limit concurrent call in sipwise
Jon Bonilla (Manwe)
jbonilla at sipwise.com
Tue Sep 17 16:44:27 EDT 2013
El Tue, 17 Sep 2013 15:05:18 -0500
Jeremie Chism <jchism2 at gmail.com> escribió:
> When you limit the number of inbound concurrent calls, I would like sipwise
> to return a 486 busy instead of a disconnected. Is that possible.
>
You need to change it in your proxy configuration via a custom template
(/etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2). In case you talk
about a peer search for this in ROUTE_FIND_CALLEE
xlog("L_NOTICE", "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) = $xavp(caller_real_prefs[0]=>sound_set);
$(avp(s:announce_code)[*]) = 403;
$(avp(s:announce_reason)[*]) = "Maximum parallel calls exceeded";
route(ROUTE_EARLY_REJECT);
And change the code as you wish. Same for inbound calls for subscribers
(different place in the proxy template)
cheers,
Jon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130917/eaade91a/attachment-0001.asc>
More information about the Spce-user
mailing list