In this section, users with the proper skills (e.g. System Administrator) will find useful information about the environment where the XCALLY Motion V2 has been installed.
The operating system
The supported OS is CentOS7 (Minimal ISO recommended, download here).
Remember to properly configure the system SWAP AREA (at least the double of the RAM).
A “yum update” before starting the Motion installation procedure is strongly recommended.
About the OS update If you need to update the OS on an existing Motion installation, we strongly suggest to try it on a test environment before, because some packages update could affect the proper system operations.
The Motion service
The Motion service is handled by the systemd service file.
The action command is:
systemctl start|stop|restart|status motion.service
[root@pbx2 ~]# systemctl status motion.service
to show the Motion service status
service motion start|stop|restart|status
The Asterisk and Motion processes run in specific user accounts called “asterisk” and “motion”.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24528 motion 20 0 1252356 76232 12884 S 1.7 1.9 0:37.68 node /var/opt/m
7968 asterisk 20 0 2112604 64976 18908 S 0.3 1.6 175:24.60 asterisk
To change user (e.g. to run the pm2-list command), use:
Additionally, you can run a command as a different user by typing:
runuser -l motion -c 'pm2 list' su - motion -c "pm2 list"
The XCALLY Motion V2 installer includes Asterisk 13.24.0 (Opus codec enabled)
About Asterisk: https://wiki.asterisk.org/wiki/display/AST/Home About Opus codec: http://opus-codec.org/ https://wiki.asterisk.org/wiki/display/AST/Codec+Opus
Asterisk CLI The Asterisk CLI works in the root account as usual
Asterisk sound files
If you manually add the Asterisk core sound files, for instance you want to change the default english language to Spanish or Italian etc, pay attention to set the proper permission/owner to the Asterisk sound folder otherwise Asterisk will not able to play the sound files:
chown -R asterisk:asterisk /var/lib/asterisk/sounds/es chown -R asterisk:asterisk /var/lib/asterisk/sounds/it
The Motion V2 installer includes MySQL 5.7.x database.
The following MySQL users will be created during the installation process:
application user to handle the Motion DB operations. The user has specific privileges to the Motion database and limited access to the MYSQL instance (remote access is not allowed).
The user password is randomly generated during the installation.
read-only user for statistic purpose on Motion database. The user is able to remote access to the database and it’s locked by default.
To enable the user please run the following command into the SSH console (MySQL root password is required):
mysql -u root -p -e "ALTER USER 'xcall_ro'@'%' ACCOUNT UNLOCK;"
To change the user password:
mysql -u root -p -e "ALTER USER 'xcall_ro'@'%' IDENTIFIED BY 'New-Password-Here' PASSWORD EXPIRE INTERVAL 90 DAY;"