Skip to main content

spa 942 auto provision

Posted by gerteizinga on Sun, 12/13/2009

hi

im trying to get my linksys spa 942 phone provisioned by the pbx,
i made a managed phone in the pbx with the correct mac addres and selectec spa 942 as the phone type,
as how i understand it this auto provisioning can either work through http and tftp,
on the dhcp server i added option 66 to the ip of the pbx,
on the linksys phone on the provisioning tab the profile rule is /spa$PSN.cfg
at the moment the phone doesnt get provisioned, i have also tried it with dhcp option 43 to try it with http if im correct but no succes.

what do i need to do to get the phone provisioned?


Submitted by mattdarnell on Mon, 12/14/2009 Permalink

Thirdlane just creates the config files and puts them in a directory. You pick the protocol for the phones to use, ftp, tftp, http, etc. You need to configure the server appropriately.

I would isolate the issues i.e. If you are using http provisioning, can you bring up the site in your web browser?

Take DHCP out of the mix, hard code in the phone while you are trouble shooting.

-Matt

Submitted by eeman on Mon, 12/14/2009 Permalink

profile rule of tftp://your.ip.addr/spa$MA.cfg is pretty concrete.. if tftp works, you have the server setup correct, and can reach it then this profile rule will provision the phone. From there you can work on letting dhcp specify the ip address etc.

Submitted by jsturtevant on Mon, 12/14/2009 Permalink

with a properly configured DHCP server: option 66 pointing to the IP of the PBX the factory default will request files via tftp.

tail -f /var/log/messages

this will show you syslog messages which will include TFTP server messages. it may take the phone 60-90 seconds before it requests a config.

if you don't see the requests, then as Erik suggests you can manually configure the phone to request the config.

also, for those who are impatient you can force a reboot/resync of the phone

http://..phone ip../admin/reboot
http://..phone ip../admin/resync (after the reboot completes)

Jim Sturtevant
Sigma Networks

Submitted by gerteizinga on Mon, 12/14/2009 Permalink

thanks for the clear explenations the only thing i cant find is in wich directory thirdlane puts this config files, is this the asterisk/provision dir? in there i dont find a file spa942.cfg,
if i wanna use http as a way of provisioning what directory do i need to make able to open from http?
if i wanna use tftp in which directory are the configuration files the phone needs to be able to get?

Submitted by mattdarnell on Mon, 12/14/2009 Permalink

Look in System Settings|Provisioning Settings.

-Matt

Submitted by eeman on Tue, 12/15/2009 Permalink

manually .. you need to read the linksys bulk provisioning guide... theres a link to it in the forums from a cisco sales guy.

Submitted by moshe on Thu, 04/08/2010 Permalink

it is my first time playing with a linksys 942 and i cannot get it to work

my spaxxx.cfg files are located at /home/PlcmSpIp since all my phone are Polycom what would i out in proflie rule

dont know where to start, if anyone could guide me

Submitted by eeman on Thu, 04/08/2010 Permalink

theres nothing wrong with your destination directory as long as your tftp server is using that directory.. but linksys provisioning is a pain.. you have to tell it what file to download and then restart it.

Submitted by eeman on Thu, 04/08/2010 Permalink

yea you dont need to include the PlcmSpIp in the provisioning rule as thats the root of the tftp server.

you should see something in /var/log/messages

Submitted by eeman on Fri, 04/09/2010 Permalink

the one that comes with centos/rhel that runs out of xinetd is more than sufficient.

service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -vvvvvvv -u root -s /home/PlcmSpIp
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

where -s specifies the root directory of the server

Submitted by moshe on Fri, 04/09/2010 Permalink

i tried tftp://domain.name.com/spa$MA.cfg in profile rule than restart the phone with no luck and no massage in # tail -f /var/log/asterisk/messages

I'm definitely doing something wrong hare, not sure what tough

any help

Submitted by eeman on Fri, 04/09/2010 Permalink

it may be as simple as iptables not allowing the traffic

do you have a rule for udp port 69 in your /etc/sysconfig/iptables ?

Submitted by eeman on Fri, 04/09/2010 Permalink

something to be aware of...

some firewalls seem to have problems with TFTP from a nat'd source. This includes BSD based firewalls. Some linux based firewalls use a kernel module known as a nat helper specifically for tftp. There are nat helpers for tftp, ftp, and a variety of other application protocols. Depending of the vendors, they may or may not make use of those helper modules.

Submitted by moshe on Fri, 04/09/2010 Permalink

i add
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 69 -j ACCEPT

and restart iptables with the same outcome

Submitted by eeman on Fri, 04/09/2010 Permalink

i confirmed your server is working, i just retrieved a file

[root@vpbx01 ~]# tftp
(to) mte1.voore.com
tftp> get spa2102.cfg
tftp> quit
[root@vpbx01 ~]# ls spa2102.cfg
spa2102.cfg
[root@vpbx01 ~]# ls -l spa2102.cfg
-rw-r--r-- 1 root root 833 Apr 9 12:45 spa2102.cfg

Submitted by moshe on Sun, 04/11/2010 Permalink

sorry i was looking in /var/log/asterisk/messages thats why i havnt seen any thing, hare is var/log/messages

Apr 11 09:19:24 mte1a xinetd[28336]: START: tftp pid=7948 from=xx.xx.xx.xx
Apr 11 09:19:24 mte1a in.tftpd[7949]: RRQ from xx.xx.xx.xx filename /spa000e08d4xxx7.cfg
Apr 11 09:19:24 mte1a in.tftpd[7949]: tftpd: read: Connection refused
Apr 11 09:19:26 mte1a in.tftpd[7950]: RRQ from xx.xx.xx.xx filename /spa000e08d4xxx7.cfg
Apr 11 09:19:26 mte1a in.tftpd[7950]: tftpd: read: Connection refused
Apr 11 09:19:29 mte1a in.tftpd[7951]: RRQ from xx.xx.xx.xx filename /spa000e08d4xxx7.cfg
Apr 11 09:19:29 mte1a in.tftpd[7951]: tftpd: read: Connection refused
Apr 11 09:19:31 mte1a in.tftpd[7952]: RRQ from xx.xx.xx.xx filename /spa000e08d4xxx7.cfg
Apr 11 09:19:31 mte1a in.tftpd[7952]: tftpd: read: Connection refused
Apr 11 09:34:31 mte1a xinetd[28336]: EXIT: tftp status=0 pid=7948 duration=907(sec)

is this the nat issue?

Submitted by moshe on Mon, 04/12/2010 Permalink

ok i provisioned it manually, but the conf (conference button) is not working do you by any chance know where i set it in web gui?

Submitted by eeman on Mon, 04/12/2010 Permalink

i think it works automatically as long as your other buttons are not set up as registrations.. they need to share the 1 registration.

Submitted by moshe on Mon, 04/12/2010 Permalink

sorry for not explaining before I'm trying to make a 3 way call when Im on a call and i press conference (conf) caller 1 goes on hold i call caller 2 press conference (conf) again noting happens caller 1 stays on hold and I'm on with caller 2 if i press join caller 1 is joined with caller 2 but im off the line

no way to make a 3way call with spa942?