[OpenSIPS-Users] route_to_carrier using a random gateway

Ben Newlin Ben.Newlin at genesys.com
Tue Sep 10 15:52:27 EDT 2019


You just need to set the carrier flag to use weights for routing and define the list of gateways with their weights. It’s described in the Overview section of the dr_routing module documentation here: https://opensips.org/html/docs/modules/2.4.x/drouting.html#idp165856..

Ben Newlin

From: Users <users-bounces at lists.opensips.org> on behalf of Dominic <wallnut.monkeys at gmail.com>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org>
Date: Tuesday, September 10, 2019 at 3:23 PM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: [OpenSIPS-Users] route_to_carrier using a random gateway

Hi, I'm using OpenSIPS 2.4 and I want to use the route_to_carrier from the drouting module to send a call to a random gateway of that carrier instead of using the first one that is defined.

for example:
carrier1 has gw1 and gw2, I would like to send calls to gw1 and gw2 randomly instead of always sending calls to gw1.

From the documentation of the drouting module it looks as though this is possible, but I could not find an example.

thanks in advance for any help

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190910/6be38286/attachment.html>


More information about the Users mailing list