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 pjsip.conf

extensions.conf

  • Change "extensions_enswitch_18.conf" to "extensions_enswitch_16.conf" if using Asterisk 16, or 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 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.
  • Repeat the above steps for the [127.0.0.1:5060] section.

pjsip.conf

  • If Kamailio is running on the same machine, change bindport to 5062 in [transport-udp].
  • In [enswitch-local], set the public IP address of Kamailio in the contact and match lines (in all sections).
  • In [enswitch-local], set the primary SIP domain (if known) or public IP address (if the domain is not known) in the from_domain 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 contact, endpoint and match lines (in all sections).
  • 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 from_domain and aors lines.
  • Repeat the above steps for the [127.0.0.1:5060] section.