For SIP registration and proxy, Enswitch uses Kamailio. You should add a machine for every machine Kamailio may exchange calls with, including the Kamailio 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
- Log in to the Enswitch web interface.
- Go to System » Machines.
- Click the "New" button.
- 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 should not try sending calls to.
- The port to send SIP calls to. If Asterisk is running on the same machine as Kamailio, 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.
- Click the "Save" button.
- Repeat for any other machines in the cluster that Kamailio may exchange calls with, including itself.
- Optionally repeat for all other machines in the cluster.