[OpenSIPS-Users] routing calls to several asterisks

vasilevalex alexei.vasilyev at gmail.com
Thu Aug 30 03:15:25 EDT 2018


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



More information about the Users mailing list