After the configuration you are ready to adjust the system parameters to your needs to make the system work properly.
If you have only one network card inside your system, its device name is eth0, it’s configured and only IPV4 is important to you then there should be nothing to do for you at this stage. If multiple network cards are present, your network card does not use eth0 for its device name or you need IPv6 then the only parameter you need to change at this moment is the listening address for your SIP services.
To do this, you have to specify the interface where your listening address is configured, which you can do with the following command (assuming your public interface is eth0):
ngcp-network --set-interface=eth0 --ip=auto --netmask=auto --hwaddr=auto ngcp-network --move-from=lo --move-to=eth0 --type=web_ext --type=sip_ext --type=rtp_ext --type=ssh_ext --type=web_int
If you want to enable IPv6 as well, you have to set the address on the proper interface as well, like this (assuming you have an IPv6 address fdda:5cc1:23:4:0:0:0:1f on interface eth0):
ngcp-network --set-interface=eth0 --ipv6='FDDA:5CC1:23:4:0:0:0:1F'
tip | |
Always use a full IPv6 address with 8 octets. Leaving out zero octets (e.g. |
important | |
You should use the IPv6 address in upper-case because LB (kamailio) handles the IPv6 addresses internally in upper-case format. |
Check or adjust the network configuration in the /etc/ngcp-config/network.yml file.
editor /etc/ngcp-config/network.yml
The following configuration shows C5 running in the internal 192.168.0.0/24 network behind the NAT:
... self: eth0: dns_nameservers: - 192.168.0.1 hwaddr: 11:22:33:44:55:66 ip: 192.168.0.10 gateway: 192.168.0.1 netmask: 255.255.255.0 type: - ssh_ext - web_ext - web_int - sip_ext - rtp_ext interfaces: - lo - eth0 lo: ...
Apply the adjusted network configuration, and /etc/network/interfaces will be regenerated from the new configuration.
ngcpcfg apply 'change network configuration'
The resulting /etc/network/interfaces file will look like this:
# File autogenerated by ngcpcfg # lo ---------------------- auto lo iface lo inet loopback # -------------------------------------------- # eth0 ---------------------- auto eth0 iface eth0 inet static address 192.168.0.10 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 192.168.0.1 # --------------------------------------------
Reboot the server to apply the new network configuration:
reboot
In order to apply the changes you made to /etc/ngcp-config/config.yml, you need to execute the following command to re-generate your configuration files and to automatically restart the services:
ngcpcfg apply 'added network interface'
tip | |
At this point, your system is ready to serve. |
During installation, the system user cdrexport is created. This jailed system account is supposed to be used to export CDR files via sftp/scp. Set a password for this user by executing the following command:
passwd cdrexport
The installer has set up a MySQL database on your server. You need to set a password for the MySQL root user to protect it from unauthorized access by executing this command:
mysqladmin password <your mysql root password>
For the Administrative Web Panel located at https://<your-server-ip>:1443/login/admin, a default user administrator with password administrator has been created. Connect to the panel (accept the SSL certificate for now) using those credentials and change the password of this user by going to Settings→Administrators and click the Edit when hovering over the row.
The default editor is set to nano on the system. If you prefer a different editor, make sure it’s installed and set the default editor via:
sudo update-alternatives --config editor
tip | |
if you want to use a specific editor only temporarily, set the EDITOR environment variable instead. For example to run command with the editor set to vim, invoke "EDITOR=vim command". |
The Sipwise C5 installer will install mailx (which has Exim4 as MTA as a default dependency) on the system, however the MTA is not configured by the installer. If you want to use the Voicemail-to-Email feature of the Voicebox, you need to configure your MTA properly. If you are fine to use the default MTA Exim4, execute the following command:
sudoedit /etc/ngcp-config/config.yml # edit section 'email:' according to your needs sudo ngcpcfg apply 'adjust exim4 / MTA configuration'
important | |
You are free to install and configure any other MTA (e.g. postfix) on the system, if you are more comfortable with that. |
You have a typical test deployment now and you are good to go, however you may need to do extra configuration depending on the devices you are using and functionality you want to achieve.
To test and use your installation, you need to follow these steps now:
Please read the next chapter for instructions on how to do this.