thank you I'll give that a try

On Thu, Aug 30, 2018, 3:18 AM vasilevalex, <alexei.vasil...@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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to