Topic: Polycom provisioning [Comments: 25]
Had

Fri, 10/09/2009 - 06:33 | Polycom provisioning

Which SIP and BootROM version should I use for my Polycom IP320 and 450 phones for the auto-generated provision files to work?
I use PBX Manager 6.0.1.75 and my phones have the latest SIP 3.2.1 and BootROM 4.2.0.
When I add new extension, files are create but when the phone boot there is error message "config error 0x0" on the display and the phone keeps rebooting.

Please advise

Peter

eeman

Fri, 10/09/2009 - 13:44 | those versions should work,

those versions should work, do you have the firmware installed in the provisioning directory? Did you make sure your sip.cfg and phone1.cfg are from the 3.2.1 version? if you use ftp for provisioning you can check the boot log and app log for that mac address to see what file it fails on.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

Had

Fri, 10/09/2009 - 13:56 | my mistake

sorry, phone1.cfg was missing in provisioning directory.

All works now.

Peter

Had

Fri, 10/09/2009 - 14:15 | NTP

where can I add NTP option to these provisioning files?

Peter

eeman

Fri, 10/09/2009 - 14:35 | you don't want to do it via

you don't want to do it via dhcp?

if you want to override dhcp add some keys to your polycom_local.cfg

          tcpIpApp.sntp.resyncPeriod="86400"

          tcpIpApp.sntp.address="1.us.pool.ntp.org"

          tcpIpApp.sntp.address.overrideDHCP="1"

          tcpIpApp.sntp.gmtOffset="-18000"

          tcpIpApp.sntp.gmtOffset.overrideDHCP="1"

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

Had

Fri, 10/09/2009 - 16:45 | thanks

thanks

Had

Fri, 10/09/2009 - 18:17 | that setting works but only

that setting works but only until you add another polycom extension...

After that the local-settings.cfg file is rewritten. Is there any way around?

Peter

mattdarnell

Fri, 10/09/2009 - 21:51 | Update the files in

Update the files in /etc/asterisk/provisioning

Those files are the templates.

-Matt

eeman

Fri, 10/09/2009 - 22:23 | no, never touch

no, never touch /etc/asterisk/provisioning because they get overwritten on upgrades

copy any file you want to alter from /etc/asterisk/provisioning to /etc/asterisk/user_provisioning and edit it there

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

gregshap

Sat, 10/24/2009 - 06:43 | Polycom SP 430

I am trying to configure a Polycom for the first time. It seems much more complicated than the Linksys I have been using. The problem is that when I try to provision, it keeps booting and giving me the error: errors 0x20. it looks like this error is from the SIP.ld file. Any ideas on what to do would be appreciated as this is my first (be kind).

Thanks

Greg

eeman

Sat, 10/24/2009 - 06:53 | did you upload your firmware

did you upload your firmware to the server?

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

gregshap

Sat, 10/24/2009 - 07:28 | Polycom SP 430

Yes, I put 3.2.1 there and it looks like that part worked as it shows 3.2.1 when it boots. I also put the auto-provisioning files from Thirdlane there as well. They are: 0004f224d7c2.cfg and 0004f224d7c2-registration.cfg. This may be where it fails as if I take them out, it doesn't fail but it also doesn't register to the server.

Greg

eeman

Sat, 10/24/2009 - 13:52 | are you using FTP? when using

are you using FTP? when using the FTP method of configration it will upload a macaddr-boot.log and a macaddr-app.log (depending on how far it gets before failing).. those files will tell you what file it fails to retrieve.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

eeman

Sat, 10/24/2009 - 14:36 | script for creating FTP repository

you can use the following script to create an FTP provisioning repository..

the directory created is hardened against exploit as even someone knowing your FTP login cannot view the files, they must know the filename to retrieve.

#!/bin/bash

useradd PlcmSpIp

echo PlcmSpIp:yournewpass | chpasswd

chsh -s /sbin/nologin PlcmSpIp

chmod 751 /home/PlcmSpIp

chown -R root. /home/PlcmSpIp

mkdir -p /usr/src/polycom

cd /usr/src/polycom

wget http://url.to/spip_ssip_vvx_BootROM_4_2_0_release_sig.zip

wget http://url.to/spip_ssip_vvx_3_2_1_release_sig_split.zip

cd /home/PlcmSpIp/

unzip /usr/src/polycom/spip_ssip_vvx_BootROM_4_2_0_release_sig.zip

unzip /usr/src/polycom/spip_ssip_vvx_3_2_1_release_sig_split.zip

mkdir -p /home/PlcmSpIp/LICENSE

mkdir -p /home/PlcmSpIp/CONTACTS

mkdir -p /home/PlcmSpIp/LOGS

mkdir -p /home/PlcmSpIp/OVERRIDES

chown -R PlcmSpIp. CONTACTS LOGS OVERRIDES

since thirdlane only supports one provisioning location, its easiest to go ahead and move your TFTP directory here as well:

[root@somebox somedir]# cat /etc/xinetd.d/tftp

# default: off

# description: The tftp server serves files using the trivial file transfer \

# protocol. The tftp protocol is often used to boot diskless \

# workstations, download configuration files to network-aware printers, \

# and to start the installation process for some operating systems.

service tftp

{

disable = no

socket_type = dgram

protocol = udp

wait = yes

user = root

server = /usr/sbin/in.tftpd

server_args = -vvvvvvv -s /home/PlcmSpIp

per_source = 11

cps = 100 2

flags = IPv4

}

I see your using 3.2.1 ... are any of your phones 301/501/601 ?

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

gregshap

Sat, 10/24/2009 - 16:42 | SP430

I actually have it set up on a windows server via FTP. It wrote a log file and this is what I see as the only errors found:

Download of 'bootrom.ld' FAILED on attempt 1 (addr 1 of 1)

1024163802|copy |4|00|Server '192.168.1.2' said 'bootrom.ld' is not present

1024163802|cfg |4|00|Could not get all 512 bytes of the header

1024163802|cfg |3|00|bootROM file not present on boot server

1024163802|copy |3|00|'ftp://administrator:****@192.168.1.2/0004f224d7c2.cfg' from '192.168.1.2'

1024163802|copy |3|00|Download of '0004f224d7c2.cfg' succeeded on attempt 1 (addr 1 of 1)

1024163802|copy |3|00|'ftp://administrator:****@192.168.1.2/sip.ld' from '192.168.1.2'

1024163802|cfg |3|00|Image sip.ld has not changed

1024163802|copy |3|00|Download of 'sip.ld' succeeded on attempt 1 (addr 1 of 1)

1024163802|cfg |3|00|Downloaded application image is identical to current version

1024163802|cfg |3|00|Phone successfully provisioned

1024163806|app1 |4|00|Loaded application sip.ld successfully, errors 0x20.

1024163806|app1 |6|00|Uploading boot log, time is SAT OCT 24 16:38:07 2009

gregshap

Sat, 10/24/2009 - 17:36 | Polycom SP 430

I added a BootRom file now it doesn't get 0x20 but does error on 0x0. I see no errors listed on the log file?

Downloaded bootROM is identical to current version 4.2.0

1024172400|copy |3|00|'ftp://administrator:****@192.168.1.2/0004f224d7c2.cfg' from '192.168.1.2'

1024172400|copy |3|00|Download of '0004f224d7c2.cfg' succeeded on attempt 1 (addr 1 of 1)

1024172400|copy |3|00|'ftp://administrator:****@192.168.1.2/2345-11402-001.sip.ld' from '192.168.1.2'

1024172400|cfg |3|00|Image 2345-11402-001.sip.ld has not changed

1024172400|copy |3|00|buffered_write: transfer terminated

1024172400|copy |3|00|Download of '2345-11402-001.sip.ld' succeeded on attempt 1 (addr 1 of 1)

1024172400|cfg |3|00|Downloaded application image is identical to current version

1024172400|cfg |3|00|Phone successfully provisioned

1024172400|app1 |3|00|Application, load: Type=SIP, Version=3.2.1.0054 16-Sep-09 10:05

1024172404|app1 |4|00|Loaded application sip.ld successfully, errors 0x0.

1024172404|app1 |6|00|Uploading boot log, time is SAT OCT 24 17:24:05 2009

gregshap

Sat, 10/24/2009 - 17:42 | Polycom SP 430

Erik,

Could there be a problem with the cfg file that thirdlane creates? I didn't configure any buttons as I wasn't sure what to do. But it looks like the problem lies there.

Greg

eeman

Sun, 10/25/2009 - 15:31 | 0x0 is not an error.. thats

0x0 is not an error.. thats normal. when you created your config did you assign the extension to 'all buttons' ? what does your app log show?

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

gregshap

Mon, 10/26/2009 - 19:02 | Polycom SP 430

The log doesn't show any problems:

|4|00|Initial log entry
0100000000|copy |3|00|Initial log entry
0100000000|hw |4|00|Initial log entry.
0100000000|ethf |4|00|Initial log entry.
1025164305|wdog |4|00|Initial log entry
1025164305|lldp |3|00|LLDP is DISABLED.
1025164305|cdp |3|00|CDP is DISABLED.
1025164305|so |3|00|Platform: Model=SoundPoint IP 430, Assembly=2345-11402-001 Rev=C
1025164305|so |3|00|Platform: Board=2345-11402-001 1
1025164305|so |3|00|Platform: MAC=0004f224d9cc, IP=Resolving, Subnet Mask=Resolving
1025164305|so |3|00|Platform: BootBlock=2.8.1 (11402_001) 02-May-08 14:04
1025164305|so |3|00|Application, main: Label=BOOT, Version=Biotite 4.2.0.0310 14-Aug-09 17:47
1025164305|so |3|00|Application, main: P/N=3150-11069-420
1025164305|app1 |4|00|Initial log entry.
1025164306|so |3|00|Link status is Net up Speed 100 full Duplex, PC down.
1025164315|lldp |3|00|LLDP did not receive a response from a switch. Disabling LLDP.
1025164318|cdp |3|00|CDP received a response from a switch. CDP enabled.
1025164318|cdp |3|00|No Native VLAN found
1025164318|cdp |3|00|No Auxiliary VLAN found
1025164318|cdp |3|00|CDP power usage is 4500 milliWatts.
1025164325|app1 |3|00|DNS resolver servers are '192.168.1.2' '24.93.40.62'
1025164325|app1 |3|00|DNS resolver search domain is 'towerz.local'
1025164325|app1 |3|00|Bootline: esw(3,0)bootHost:flash e=192.168.1.23:ffffff00:a8c00:12 h=192.168.1.2 g=192.168.1.1 u=administrator pw=**** f=0x40 tn=
1025164325|app1 |3|00|Bootline: CircaIP
1025164325|app1 |3|00|DHCP returned result 0x3E7 from server 192.168.1.2.
1025164325|app1 |3|00| Phone IP address is 192.168.1.23.
1025164325|app1 |3|00| Subnet mask is 255.255.255.0.
1025164325|app1 |3|00| Gateway address is 192.168.1.1.
1025164325|app1 |3|00| Time server is 192.43.244.18.
1025164325|app1 |3|00| GMT offset is 0 seconds.
1025164325|app1 |3|00| DNS server is 192.168.1.2.
1025164325|app1 |3|00| DNS alternate server is 24.93.40.62.
1025164325|app1 |3|00| DNS domain is towerz.local.
1025164425|app1 |3|00|Time has been set from 192.43.244.18 (192.43.244.18).
1025164425|cfg |3|00|Beginning to provision phone
1025164425|copy |3|00|'ftp://administrator:****@192.168.1.2/2345-11402-001.bootrom.ld' from '192.168.1.2'
1025164425|cfg |3|00|Image 2345-11402-001.bootrom.ld has not changed
1025164425|copy |3|00|buffered_write: transfer terminated
1025164425|copy |3|00|Download of '2345-11402-001.bootrom.ld' succeeded on attempt 1 (addr 1 of 1)
1025164425|cfg |3|00|Downloaded bootROM is identical to current version 4.2.0
1025164425|copy |3|00|'ftp://administrator:****@192.168.1.2/0004f224d9cc.cfg' from '192.168.1.2'
1025164426|copy |3|00|Download of '0004f224d9cc.cfg' succeeded on attempt 1 (addr 1 of 1)
1025164426|copy |3|00|'ftp://administrator:****@192.168.1.2/2345-11402-001.sip.ld' from '192.168.1.2'
1025164426|cfg |3|00|Image 2345-11402-001.sip.ld has not changed
1025164426|copy |3|00|buffered_write: transfer terminated
1025164426|copy |3|00|Download of '2345-11402-001.sip.ld' succeeded on attempt 1 (addr 1 of 1)
1025164426|cfg |3|00|Downloaded application image is identical to current version
1025164426|cfg |3|00|Phone successfully provisioned
1025164426|app1 |3|00|Application, load: Type=SIP, Version=3.2.1.0054 16-Sep-09 10:05
1025164430|app1 |4|00|Loaded application sip.ld successfully, errors 0x0.
1025164430|app1 |6|00|Uploading boot log, time is SUN OCT 25 16:44:30 2009

But it just keeps rebooting and running the apps again.

Please help !

Thanks Erik,

Greg

eeman

Mon, 10/26/2009 - 20:11 | what does your macaddr.cfg

what does your macaddr.cfg look like that it fetches?

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

olekaas

Tue, 10/27/2009 - 10:31 | ntp

I've noticed that the phones or the (crappy) router caches the lookup from pool.ntp.org. The phones will keep trying to sync to that ip-address - even if it belongs to a non responsive server.

/Ole

gregshap

Wed, 10/28/2009 - 02:17 | Polycom SP 430

Here is the Mac.cfg

?xml version="1.0" standalone="yes"?>
!-- SIP Application Configuration File -->
!-- $Revision: 1.100.4.15 $ $Date: 2006/01/23 19:36:38 $ -->
APPLICATION APP_FILE_PATH="sip.ld"
CONFIG_FILES="0004f224d7c2-registration.cfg,local-settings.cfg,phone1.cfg,sip.cfg"
MISC_FILES=""
LOG_FILE_DIRECTORY="/LOGS/"
OVERRIDES_DIRECTORY="/OVERRIDES/"
CONTACTS_DIRECTORY="/CONTACTS/"
LICENSE_DIRECTORY="/LICENSE/"/>
APPLICATION_SPIP300 APP_FILE_PATH_SPIP300="sip_212.ld" CONFIG_FILES_SPIP300="0004f224d7c2-registration.cfg, local-settings.cfg, phone1_212.cfg, sip_212.cfg"/>
APPLICATION_SPIP500 APP_FILE_PATH_SPIP500="sip_212.ld" CONFIG_FILES_SPIP500="0004f224d7c2-registration.cfg, local-settings.cfg, phone1_212.cfg, sip_212.cfg"/>
/APPLICATION>

Remember, This is my first Polycom. I am trying to love them but so far, not real friendly to stumble into the proper way to configure.

The log shows that it did timesych OK from what I can tell. But where would I specify a different server?

Greg

gregshap

Wed, 10/28/2009 - 02:50 | I don't know what changed .....

I 'm not sure what was different, but now a phone provisioned properly but not to the extension I wanted. I generated a auto-provision for a Linksys Spa2102 and when I plugged in the polycom, it provisioned itself for the Linksys extension?? Is there a way to fix the provisioning via the webgui for the phone or do I need to figure out the scripts?

Greg

eeman

Wed, 10/28/2009 - 14:00 | look in tools /

look in tools / auto-provisioning

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

schat@schat.net

I got the ntp server to work via dhcp but i cannot figure out where to do -8 gmt.

Also Do you edit the template that does not get over written in
/etc/asterisk/provisioning and then copy it to
/etc/asterisk/user_provisioning
like by in the user_provisioning folder there is a polycom 550 file already there but nothing else

can you give me a littler more detail on this?
Thank you very much

eeman

Wed, 07/14/2010 - 01:07 | its called time-offset and

its called time-offset and its time offset in seconds

subnet 172.16.100.0 netmask 255.255.255.0 {
        option option-128 "VLAN-A=100;";
        option time-servers 172.16.100.1;
        option ntp-servers 172.16.100.1;
        option time-offset -18000;
        option tftp-server-name "172.16.100.1";
        option routers 172.16.100.1;
        authoritative;
        range 172.16.100.100 172.16.100.200;
        }

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com