First time install - issue with polycom phones

n00b here installing asterisk for the first time.

The IP of my asterisk server is 6.0.0.20.

I used the tutorial from:

wiki.asterisk.org/wiki/display/ … umentation

In sip.conf I added:

[1001]
type=friend
host=dynamic
secret=1001
context=users
deny=0.0.0.0/0
permit=6.0.0.0/255.255.255.0

[1002]
type=friend
host=dynamic
secret=1002
context=users
deny=0.0.0.0/0
permit=6.0.0.0/255.255.255.0

If I’m understanding correctly, 1001 would be the sip account and 1001 would be the password (secret). At the bottom of my extensions.conf I added:

[users]
exten=>1001,1,Dial(SIP/1001,20)
exten=>1002,1,Dial(SIP/1002,20)

I’m trying to test this out using the polycom phone. In it’s configuration file I added:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

When I start up the phone, it errors out with “Could not contact boot server. using Existing config” then “config file error is 0x4020”

Any ideas?

Is the phone configured to contact a boot server? Do you have an http, ftp, or tftp daemon running, serving your configuration files?

Yes. I configured the phone to connect to the server via FTP. I tested out the FTP user using an FTP client, and it logged in fine and the config files were on it’s root.

hi

You can register the polycome phone manually by typing the polycom phone ip address in browser
it will promot the username and password
username : Polycom
password : 456

or you can install the freepbx gui in your asterisk box , and in that go to modules you see the autoprovisioning of phones module.
select the polycom model you have and configure it as per you needs.

Not being a fan myself of having to hand-provision a phone, I setup a DHCP server and an FTP server to do the provisioning. It took a lot of trial and error on my part to get it right. But here are some relevant files in case you want to go this route:

In dhcpd.conf:

subnet 192.168.77.0 netmask 255.255.255.0 {
        authoritative;
        default-lease-time 18400;
        min-lease-time 14400;
        max-lease-time 18400;

        option domain-name "phone.brandli.com";
#       option domain-name-servers 192.168.136.10, 192.168.67.8;
#       option routers 192.168.77.21;
        option tftp-server-name "ftp://PlcmSpIp:PlcmSpIp@192.168.77.20";
        option ntp-servers 192.168.77.20;
        option time-offset -28800;
}

host phone61 {
        hardware ethernet 00:04:f2:02:dd:46;
        fixed-address 192.168.77.51;
}

This is just for one phone, obviously. Add phones as needed. Notice the option tftp-server-name line. The PlcmSpIp is the user name and password of the account that contains the configuration files. PlcmSpIp is the factory default for Polycom phones. Theoretically you could change this to what you want. However, with older phones, I had trouble using “Polycom” rather than “PlcmSpIp” until the phone had loaded newer bootrom and sip application files (i.e. updated itself). So I left it at the factory default, “PlcmSpIp”.

in addition to dhcpd, the configuration server (which is also my Asterisk server) has vs-ftpd and ntpd running.

Now, in the configuration file phone-.cfg, which is in the PlcmSpIp home directory:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<phone1>
  <reg reg.1.displayName="BJ" reg.1.address="61" reg.1.label="61"
       reg.1.type="private" reg.1.auth.userId="61" reg.1.auth.password="61"/>
</phone1>

My sip.conf:

[internal-phones](!)
type=friend
host=dynamic
context=internal
srvlookup=no
progressinband=no
disallow=all
allow=ulaw
dtmfmode=rfc2833
callcounter=yes

[61](internal-phones)
secret=61
mailbox=60@default

Obviously add for more than one phone. My configuration has only a single voicemail box, not one for each phone. This is why it says “60” rather than “61.”

You will need the 000000000000.cfg. I can post that if that would be helpful. I have other phone configuration in other configuration files (within the PlcmSpIp home directory) that are not phone-specific. The 000000000000.cfg file determines how these are loaded.

Hope this helps.

[quote=“stevebrandli”]Not being a fan myself of having to hand-provision a phone, I setup a DHCP server and an FTP server to do the provisioning. It took a lot of trial and error on my part to get it right. But here are some relevant files in case you want to go this route:

In dhcpd.conf:

subnet 192.168.77.0 netmask 255.255.255.0 {
        authoritative;
        default-lease-time 18400;
        min-lease-time 14400;
        max-lease-time 18400;

        option domain-name "phone.brandli.com";
#       option domain-name-servers 192.168.136.10, 192.168.67.8;
#       option routers 192.168.77.21;
        option tftp-server-name "ftp://PlcmSpIp:PlcmSpIp@192.168.77.20";
        option ntp-servers 192.168.77.20;
        option time-offset -28800;
}

host phone61 {
        hardware ethernet 00:04:f2:02:dd:46;
        fixed-address 192.168.77.51;
}

This is just for one phone, obviously. Add phones as needed. Notice the option tftp-server-name line. The PlcmSpIp is the user name and password of the account that contains the configuration files. PlcmSpIp is the factory default for Polycom phones. Theoretically you could change this to what you want. However, with older phones, I had trouble using “Polycom” rather than “PlcmSpIp” until the phone had loaded newer bootrom and sip application files (i.e. updated itself). So I left it at the factory default, “PlcmSpIp”.

in addition to dhcpd, the configuration server (which is also my Asterisk server) has vs-ftpd and ntpd running.

Now, in the configuration file phone-.cfg, which is in the PlcmSpIp home directory:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<phone1>
  <reg reg.1.displayName="BJ" reg.1.address="61" reg.1.label="61"
       reg.1.type="private" reg.1.auth.userId="61" reg.1.auth.password="61"/>
</phone1>

My sip.conf:

[internal-phones](!)
type=friend
host=dynamic
context=internal
srvlookup=no
progressinband=no
disallow=all
allow=ulaw
dtmfmode=rfc2833
callcounter=yes

[61](internal-phones)
secret=61
mailbox=60@default

Obviously add for more than one phone. My configuration has only a single voicemail box, not one for each phone. This is why it says “60” rather than “61.”

You will need the 000000000000.cfg. I can post that if that would be helpful. I have other phone configuration in other configuration files (within the PlcmSpIp home directory) that are not phone-specific. The 000000000000.cfg file determines how these are loaded.

Hope this helps.[/quote]

Not sure how to configure a tftp server. I have an ftp already up and running. What would I need to change in order to utilize that?

Also, I noticed that in DHCPD.conf you are referencing a fixed IP address. If I’m using dynamically assigned IP’s, how would the configuration go?

Actually, with my dhcp setup, the phones use ftp, not tftp. I don’t have tftp running on this particular server.

Add “range ;” within the subnet block. The dhcp server will serve addresses out of that range. Of course, the ip range must be within the subnet declared in that block. Remember the semi-colon at the end of the range directive.

Actually, with my dhcp setup, the phones use ftp, not tftp. I don’t have tftp running on this particular server.

Add “range ;” within the subnet block. The dhcp server will serve addresses out of that range. Of course, the ip range must be within the subnet declared in that block. Remember the semi-colon at the end of the range directive.[/quote]

Sorry for the confusion, but could you give an example of what the dhcpd.conf would look like with that added? I wanted to make sure I’m understanding it correctly.

Also, what about for the file named .cfg? I remember from way before having to configure that to point to its phone-.cfg file. But I’m not quite sure what goes in there. The existing one that I copied from work is referencing some sip_212.cfg, sip_212.ld, and phone1_212.cfg files.


<?xml version="1.0" standalone="yes"?>

Is anyone able to provide any insight?

All I really want to do for my home setup is to have both of my polycom phones registered in asterisk and routed through a SIP account that I plan to purchase.

When someone calls the main number, both phones should ring and share only one voicemail.

I’m still stuck on the first half of the project, being that cannot get the phones to register successfully.

I’m uncertain of what are ALL of the necessary configurations needed.

Sorry, I’m not a super-frequent poster. I used to be a developer, but now I’m a lawyer.

As for the use of FTP, my post above shows how to do that. See the dhcp.conf line that starts with “tftp”.

As for allocating IP addresses out of a pool, I really meant what I said. Have a look at the dhcp.conf I posted. Then add the “range” directive exactly as I indicated in my later post.

I don’t use .cfg. Instead, I used 000000000000.cfg, which is used by all phones. I’m posting mine here. There is documentation on the polycom website about how this works. It’s pretty involved.

<?xml version="1.0" standalone="yes"?>
<!-- Default Master SIP Configuration File-->
<!-- For information on configuring Polycom VoIP phones please refer to the -->
<!-- Configuration File Management white paper available from: -->
<!-- http://www.polycom.com/common/documents/whitepapers/configuration_file_management_on_soundpoint_ip_phones.pdf -->
<!-- $RCSfile: 000000000000.cfg,v $  $Revision: 1.19.2.1 $ -->
<APPLICATION APP_FILE_PATH="sip.ld" CONFIG_FILES="phone-[PHONE_MAC_ADDRESS].cfg, local.phone.cfg, local.sip_330.cfg, local.sip.cfg" MISC_FILES="" LOG_FILE_DIRECTORY="logs" OVERRIDES_DIRECTORY="overrides" CONTACTS_DIRECTORY="contacts" LICENSE_DIRECTORY="">
<!-- Not using these
  <APPLICATION_SPIP300 APP_FILE_PATH_SPIP300="sip_213.ld" CONFIG_FILES_SPIP300="phone1_213.cfg, sip_213.cfg"/>
  <APPLICATION_SPIP301 APP_FILE_PATH_SPIP301="sip_316.ld" CONFIG_FILES_SPIP301="phone1_316.cfg, sip_316.cfg"/>
  <APPLICATION_SPIP430 APP_FILE_PATH_SPIP430="sip_323.ld" CONFIG_FILES_SPIP430="phone1_323.cfg, sip_323.cfg"/>
  <APPLICATION_SPIP500 APP_FILE_PATH_SPIP500="sip_213.ld" CONFIG_FILES_SPIP500="phone1_213.cfg, sip_213.cfg"/>
-->
  <APPLICATION_SPIP501 APP_FILE_PATH_SPIP501="sip_316.ld" CONFIG_FILES_SPIP501="phone-[PHONE_MAC_ADDRESS].cfg, local.phone501.cfg, local.phone.cfg, phone1_316.cfg, local.sip_316.cfg, local.sip.cfg, sip_316.cfg" />
<!-- Not using these
  <APPLICATION_SPIP600 APP_FILE_PATH_SPIP600="sip_316.ld" CONFIG_FILES_SPIP600="phone1_316.cfg, sip_316.cfg" />
  <APPLICATION_SPIP601 APP_FILE_PATH_SPIP601="sip_316.ld" CONFIG_FILES_SPIP601="phone1_316.cfg, sip_316.cfg" />
  <APPLICATION_SSIP4000 APP_FILE_PATH_SSIP4000="sip_316.ld" CONFIG_FILES_SSIP4000="phone1_316.cfg, sip_316.cfg" />
-->
</APPLICATION>

You’ll notice that different phones use different configuration files. I have commented out those phones that I do not use, leaving two generations of phones that I current use: the 501’s and everything else. The 501’s cannot use the latest software, hence the use of sip_316.ld instead of sip.ld, which is the latest stuff. Also, the 501’s must have all configuration included in at least one of the .cfg files, whereas the newer phones only need the exceptions from the default. This is why the configuration for the newer phones only uses the “local” config files (which I created) whereas the 501’s need the polycom-supplied config files with everything in them. The hierarchy of config files is my own design. It could certainly be simplified in some environments.

This isn’t simple stuff. It requires time-consuming, careful study of the documentation and a bunch of trial and error. It’s worth starting very simple and slowly adding functionality.