[OpenSIPS-Users] routing calls to several asterisks

Dominic wallnut.monkeys at gmail.com
Thu Aug 30 06:48:57 EDT 2018


thank you I'll give that a try

On Thu, Aug 30, 2018, 3:18 AM vasilevalex, <alexei.vasilyev at gmail.com>
wrote:

> In the same situation I used dialplan and dynamic routing modules like
> this:
>
> # Get ID of destination Asterisk server according to CustomerID
> dp_translate("1", "$var(cust_id)/$var(dst_srv)");
> if ($var(dst_srv)==NULL) {
>   exit;
> }
> # Set route for SIP according ID of Asterisk server from Dynamic routing
> gateways table
> route_to_gw("$var(dst_srv)");
> route(relay);
>
> Both modules load information from DB only during start time or via MI
> command. So all these requests are made from memory. I think this is more
> effective.
>
>
>
> --
> Sent from:
> http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180830/16da7c18/attachment.html>


More information about the Users mailing list