Archive for February, 2011
Provision Polycom Phones with FreePBX
Prerequisites
FreePBX
TFTP Server Package
DHCP Server with Bootserver enabled
FTP(vsftpd) for (In new Polycom phones FTP is the default protocol)
Install TFTP Server in PBX
#yum install tftp-server
Change the Owner of TFTP directory to asterisk
#chown asterisk /tftpboot
Edit /etc/xinetd.d/tftp
change the line
disable = no
restart the xinetd service
# /etc/init.d/xinetd restart
Check if you can access the files from the tftp server.
#echo “test line” > /tftpboot/test.txt
From your client machine run the following command.
C:\> tftp 192.168.20.126 get test.txt
Transfer successful: 11 bytes in 1 second, 11 bytes/s
If your TFTP is working you will get the above output.
Install vsftp
If you want to enable FTP provosioning for Polycom phones install vsftpd
#yum install vsftpd
Add Polycom phone user
#useradd PlcmSplp -d /tftpboot
#passwd PlcmSplp
Enter PlcmSplp as password
Then add PlcmSplp to FTP configuration
#edit /etc/vsftpd/vsftpd.conf
Open the vsftpd.conf file and search for chroot_list_enable=YES
Uncomment the line and make sure it is YES. Do the same for the following variables
chroot_list_file=/etc/vsftpd/chroot_list
Create vsftpd.chroot_list in /etc/vsftpd/ and add the user PlcmSplp.
Save and close the file.
Configure DHCP sever to send boot sevrver ip along with the DHCP lease.
Here I am using windows 2003 server. Find the screen shots






Download and extract the lastest polycom firmware to /tftpboot directory.
Download the provisioning module from here and install it into FreePBX from Module Admin
Download the sample csv file from here.
Add the required extension,fullname,password and macaddress of the phones.
Upload the csv file from the Polycom Provsioning Menu of the FreePBX.
It will create all polycom configuration files required to register phones.
Connect the phones. The phones will be upgraded with the new firmware.
Every phones will be provisioned with PBX wide directory(You will get all PBX users extension numbers in directory)
If the phone is not downlading the firmware check the the boot server IP address in the phone. The boot server IP address should be the IP address of the PBX.
Modify XML Root element with PHP SimpleXMLElement
Posted by Shyju Kanaprath in Technical on February 3, 2011
How to change XML Root element with PHP SimpleXMLElement class
$extra_config = “602_0004f215cb72.cfg”;
$xml_resource = new SimpleXMLElement(‘config.xml’, 0, true);
$xml_resource['CONFIG_FILES'] = $extra_config . “, phone1.cfg, sip.cfg”;
$xml_resource-> asXML(“config2.xml”);
config.xml