Just call rl_check()/rl_check_pipe() to see if the imposed cps limit was reached: - if not, route the call normally; - if yes, pick the next destination/carrier.
Regards, Ovidiu Sas
On Sat, Aug 16, 2008 at 5:48 PM, sergejf serge@elasticall.com wrote:
Hello,
We are connected to several VoIP carriers that impose a calls per second (CPS) rate limit on their SIP trunks. For example, on TRUNK1 we can only make call attempts at 10 CPS.
Our calls are originally made by a dialer that does not support rate limiting, hence it always blasts calls as fast as it can. Upon receiving these SIP INVITE messages we determine what carrier to use and perform a mapping to a dispatcher group. Call attempts are then load-balanced between all SIP trunks from the chosen carrier.
My question is whether it is possible to use the ratelimit module in conjunction with the dispatcher (or carrierroute) to ensure we don't overload the carrier SIP trunks? If this is possible, then I wonder how to configure ratelimit to support a 10 CPS call attempts rate.
Thanks in advance for any advice on the topic!
Serge
View this message in context: http://www.nabble.com/Ratelimit-outgoing-SIP-INVITE-messages-after-dispatche... Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users