Provision Polycom Phones with FreePBX

Change Polycom Addressbook when you change Display Name from Extensions in Elastix : FreePBX

Edit the file /var/www/html/admin/modules/core/functions.inc.php
Add the following lines after line number 4477
        $newname=$vars['name'];
//      list($fn, $ln) = explode(' ',$newname);
        $userparams = core_users_get($extension);
        $oldname =$userparams['name'];
        if (strcmp($newname, $oldname) !== 0) {
        exec("sed -i -- 's/$oldname/$newname/g' /tftpboot/polycom/contacts/*.xml"); }

 

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 Server

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.

TFTP Configuration - Write Enabled

/etc/xinetd.d/tftp
service tftp
{
 socket_type = dgram
 protocol = udp
 wait = yes
 user = root
 server = /usr/sbin/in.tftpd
 server_args = -c -s -vv /tftpboot
 disable = no
 per_source = 11
 cps = 100 2
 flags = IPv4
}
Advertisements

, , , , , , , , , , ,

  1. #1 by Anonymous on August 5, 2012 - 11:18 AM

    What’s Going down i am new to this, I stumbled upon this I’ve found It absolutely useful and it has helped me out loads.
    I hope to give a contribution & aid other customers like its aided
    me. Good job.

  2. #2 by uclord on September 7, 2012 - 11:01 PM

    i cant find the the provisioning module from here and install it into FreePBX from Module Admin
    and the sample csv file from here.

  3. #3 by candycrushtriche.com on October 8, 2013 - 3:02 PM

    I did a seearch on Google for ‘free WordPress themes’ and came across a site called WordPress Themes Base and iin this site they list hundreds upon hujdreds of free
    Wordpress tthemes tthat can be downloaded. As developers
    don’t know about their clients, they have to guess
    what the target clients might want in the theme.
    You should not opt for the WordPress Theme which will otherwise not
    gel with your business.

  4. #4 by Anvar on July 23, 2014 - 6:41 PM

    Good article.working fine on polycom phones.keep your good work.

  1. Cisco SIP Configuration « Tech.. Logs..
  2. Cisco 7911G Phone with Asterisk | Tech…….help….
  3. Provision Polycom Phones with FreePBX « UC Lord

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: