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_13.conf" if using Asterisk 13.

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 is running on the same machine, change bindport to 5070.
  • In [enswitch-local], set the public IP address of Kamailio in the host line.
  • In [enswitch-local], set the primary SIP domain (if known) or public IP address (if the domain is not known) in the fromdomain line.
  • Replace the [127.0.0.1] header with the public IP address of Kamailio in square brackets.
  • In [127.0.0.1] (as changed above), set the public IP address of Kamailio in the host line.
  • In [127.0.0.1] (as changed above), set the primary SIP domain (if known) or public IP address (if the domain is not known) in the fromdomain line.