For SIP registration and proxy, Enswitch uses Kamailio (by default) or OpenSIPS (for compatibility with older systems). You should add a machine for every machine Kamailio or OpenSIPS may exchange calls with, including the Kamailio or OpenSIPS machine's own main IP address (for enswitch_sipd). Other machines in the cluster need not be added, but may be added for reference purposes.

To configure the list of machines

  1. Log in to the Enswitch web interface.
  2. Go to System » Machines.
  3. Click the "New" button.
  4. Enter the following:
    • The host name, excluding the DNS domain. For example, enter "asterisk1" rather than "asterisk1.example.com".
    • The DNS domain, for example "example.com".
    • Optionally a description.
    • The IP address for SIP. Use the public IP address rather than "127.0.0.1".
    • Whether to send calls to Asterisk on this machine for onward routing. Use "no" for machines which run Asterisk, but which Kamailio or OpenSIPS should not try sending calls to.
    • The port to send SIP calls to. If Asterisk is running on the same machine as OpenSIPS, this is normally 5070. If not, this is normally 5060.
    • Optionally, a weight to set what fraction of calls are routed to this machine. For example, if machine A has a weight of 1 and machine B has a weight of 2, then 1/3rd of calls will be routed to machine A and 2/3rds to machine B.
  5. Click the "Save" button.
  6. Repeat for any other machines in the cluster that Kamailio or OpenSIPS may exchange calls with, including itself.
  7. Optionally repeat for all other machines in the cluster.