Background:
Some of our customers have changed to our 3CX system, but want to keep the original CISCO phone. We know that Cisco phones usually use TFTP server to complete the phone configuration. This document will introduce how to set up TFTP server on LINUX version 3CX server to configure the Cisco phone.
STEPS:
- Installation Enter the following command to install
sudo apt-get install tftpd-hpa xinetd
Tftpd-hpa is a tftp server. xinted is a network daemon, which accepts client connections.
- Enter the following command to create a new tftp file.
sudo vi /etc/xinetd.d/tftp
The contents of the file are as follows. Save the file after modification.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/3cxpbx/Instance1/Data/Http/Interface/provisioning/xjc2spuywwc/ -c#The root directory of TFTP, here we are the configuration file directory of 3CX phone
per_source = 11
cps = 100 2
flags = IPv4
}
- Enter the following command to edit the tftpd-hpa file.
sudo vi /etc/default/tftpd-hpa
Modify TFTP_DIRECTORY to the 3CX phone configuration file directory and save it.
TFTP_USERNAME=”tftp”
TFTP_DIRECTORY=”/var/lib/3cxpbx/Instance1/Data/Http/Interface/provisioning/xjc2spuywwc”
TFTP_ADDRESS=”0.0.0.0:69″
TFTP_OPTIONS=”-l -c -s”
- Enter the following commands to give the required permissions to the 3CX folder.
sudo chmod -R 777 /var/lib/3cxpbx/Instance1/Data/Http/Interface/provisioning/xjc2spuywwc/
- Enter the following command to restart the tftp server, and complete the tftp server configuration.
sudo /etc/init.d/xinetd restart
sudo service tftpd-hpa restart