/
4.1.5 Local dialplan (balancing)

4.1.5 Local dialplan (balancing)

Local dialplan - load balancing


URL: /balancing.ashx 


cURL Request Example

curl --location --request POST 'https://xxxxxxxxx/emcd/balancing.ashx' \
--header 'User-Agent: vippie;ios;1.2.3' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Basic YW5kOmFuZDJhMzJkaW0='

After calling the balancing.ashx page (without any parameters), we will receive a list of all prefixes along with the servers assigned to them in JSON format.

Sample JSON format containing a list of prefixes.
{
   "servers":[
      {
         "prefix":"1",
         "dns":"cluster1.callto.net"
      },
      {
         "prefix":"2",
         "dns":"cluster2.callto.net"
      },
      {
         "prefix":"3",
         "dns":"cluster3.callto.net"
      },
      {
         "prefix":"4",
         "dns":"cluster4.callto.net"
      },
      {
         "prefix":"5",
         "dns":"cluster5.callto.net"
      },
      {
         "prefix":"6",
         "dns":"cluster6.callto.net"
      },
      {
         "prefix":"7",
         "dns":"cluster7.callto.net"
      },
      {
         "prefix":"8",
         "dns":"cluster8.callto.net"
      },
      {
         "prefix":"9",
         "dns":"cluster9.callto.net"
      }
   ]
}

Related content