[OpenSIPS-Users] A Dynamic List of Gateways
Brett Nemeroff
brett at nemeroff.com
Thu Aug 30 17:58:08 CEST 2012
If you can sum up the logic in an SQL query I'd recommend doing that. If
you can cache the results in memcache, even better. Just keep in mind that
any complicated logic can serve as a significant bottleneck. Depending on
your traffic load, that may or may not be an issue.
I know there are a few recommendations for the perl module here, but I'm
not sure of the status of the module and if it's actively maintained. I'd
love to hear from others about their own experiences using it. I haven't
used it myself in maybe 6 years or so.
-Brett
On Thu, Aug 30, 2012 at 9:09 AM, Shaahin Madani <shaahin.madani at gmail.com>wrote:
> Hi Bogdan and Brett,
>
> Thanks for your replies. The issue here is that my OpenSIPS simply does
> not have the list of gateways, that is the gateways are *not* available in
> the dr_gateways table. For every INVITE request, the list of gateways
> must be dynamically built, and only afterwards the actual dynamic routing
> can take place. The logic behind building the list of gateways relies on a
> totally separate database.
> To sum it up, I would say the desired scenario would resemble the steps
> below:
>
> 1) OpenSIPS receives an INVITE
> 2) OpenSIPS asks an external system (e.g. the Perl script) for the
> gateways available for this specific INVITE request
> 3) A list of gateways is returned to OpenSIPS (based on some black-box
> logic)
> 4) OpenSIPS dynamically routes the INVITE to the specified gateways,
> prioritising based on cost, time, or ...
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120830/d2878401/attachment-0001.htm>
More information about the Users
mailing list