Edit the configuration files in /etc/asterisk as desired. Suggested changes for a SIP only system are:

  • cd /etc/asterisk
  • vi extensions.conf indications.conf manager.conf res_config_mysql.conf
  • ip a
  • vi sip.conf

extensions.conf

  • Change "extensions_enswitch_11.conf" to "extensions_enswitch_18.conf" or "extensions_enswitch_16.conf" if using Asterisk 1.8 or 1.6.

indications.conf

  • Set the country. This must match one of the entries in the file.

manager.conf

  • Change the password for enswitch. The value doesn't matter, as enswitch_routed reads this file directly each time it starts.

res_config_mysql.conf

  • Set database server if a different machine.
  • Set database password.

sip.conf

  • If Kamailio or OpenSIPS is running on the same machine, change bindport to 5070.
  • Edit [enswitch-local], and set the IP of Kamailio or OpenSIPS in "host" and "fromdomain". If Kamailio or OpenSIPS is on the same machine, use the main machine IP address rather than 127.0.0.1, as they only listen on the main IP address.
  • Edit [127.0.0.1], and replace any mentions of 127.0.0.1 (including the header itself) with the IP address of Kamailio or OpenSIPS.