Is this a better way for Linksys Provisioning.....

kelvins
Posts: 9
Member Since:
2007-04-20

Hello All

Not sure if this is the correct place to put this, but I am sure it can be moved to where it best fits.

Been playing around with Trixbox for deployment at work. Excellant product. Playing around with provisioning with Linksys phones, but found that it did not accomplish all that I was hoping it would (I could be using it incorrectly after all!). I found the following issues with the current system:
1) After phone provisoned, need to factory reset, or set the profile in the phone seperately to reload the extension configuration if extension information changed
2) Uploading of new firmware to the phone is not easy without touching each phone
3) Station name is not displayed on phones with displays

So, with these three additional requirements in mind, I have rejigged the provisioning of Linksys phones to provide the above resolutions, and being open source, am feeding back my code for the community. Perhaps even inclusion as an update to the provisioning system?

So, With these modifications you can:
1) Upgrade the firmware for specific model phones during the resync period (or warm boot)
2) Change the extension mapping through endpoint manager and phone will change through next resync or warm boot
3) All configuration options that are generic are reloaded through resync (or warm boot)
4) Brand new phone when plugged in will have its firmware upgraded, and configuration set as per Trixbox.

ie, you have complete control over the linksys phones. If you want the change to happen instantly, tell the user to pull the power, then repower the phone - all changes reloaded. Alternatively, send the resync URL to the phone and wait for it to weave its magic!

Also! (no Ginsu knives) - you can change from the current setup to this without having to touch the phones at all!

Changes to the code in Endpoint manager are:
1) Removed the resync value out of this. It is now in the spa_general.cfg file
2) Writes out the display name from the extension (FreePBX) into the MAC address file
3) Lists on the list screen the current associated display name next to MAC Address and extension number

What I haven't got working yet is automatically updating the MAC Address files when updating the extension in FreePBX. That exercise I will leave to someone else!

Not sure how to upload files to have them here, so here is a URL that you can download the patches from:
http://kelhome.dyndns.org/linksys_mod.tar.gz



yiannos
Posts: 53
Member Since:
2007-01-31
This is great. As I was just

This is great. As I was just starting a new installation of TB with just SPA devices in my office. I have already a test setup on my desk and will give ot a go immediately. I have just finished setting up the default provisioning of TB (2.2.4) with endpoint manager in use.

I have bumped into the points you mention above as well.

Will be back with questions/comments.



yiannos
Posts: 53
Member Since:
2007-01-31
OK Kelvin, This is good

OK Kelvin,

This is good work. It helped me understand provisioning better. Especially with so scarce and tangled documentation floating around the net.

Couple of points and questions:

1. It seems to me that you may have over-complicated things a bit. I kept your changes in the php and tlp files but the rest (cfg files) I left it as it is. I only had to make a small change in the php code so that it would add also update_periodic in the spaMACaddr.cfg file.

2. I see you made a change in the php file at the two exec "rm" statements. You added the 'spa' string. I take it was wrong in the original file of the endpoint mgr?

3. As I am still using the spa.cfg file for periodic updates, I copied/pasted all the parameters I needed from your spa_generic.cfg file. In there, there is a date_format parameter which I could not find anywhere in order to set it (tried dd/mm but to no avail). Are you sure it exists? What values does it accept?

Thank you again for sharing. Please regard the above only as my two cents to the conversation and not as criticism.



useramuser
Posts: 4
Member Since:
2007-09-15
Firmware

Hi, great work!
One question related to upgrading the linksys phones. Could you post the link where to find the newest firmware for the linksys phones? (SPA941) I did not find firmwareupgrades on the linksys website..
Thank you!



yiannos
Posts: 53
Member Since:
2007-01-31
Hi, The path you have to

Hi,

The path you have to follow is this:

Linksys site- downloads- enter model No. (SPA941)- Select version (1.0) - Firmware

The latest I found in there was ver 5.1.8



kelvins
Posts: 9
Member Since:
2007-04-20
Sorry guys - missed these

Sorry guys - missed these posts coming back.

Get the linksys firmware from the linksys.com website (ie, the USA site). Other countries sites seem to not always have the latest firmware.

In response to yiannos:
1) I removed the update_periodic code from the endpoint manager as I put this in the spa_general.cfg file. I did this as this is the same for each phone. You can keep it in your spaMA.cfg file if you want, but you would need to remove it from the spa_general.cfg file. Otherwise one value will override the other, and may cause the phone to continuiosly reboot for an unknown reason!

2) From memory, it was only trying to delete the macaddress.cfg, not spa.cfg

3) I leave the spa.cfg file as it was, as this is the file that a default phone will look for when it starts provisioning. This also facilitates the change from the standard endpoint behaviour across to this. However, whatever suits. Google for Linksys Provisioning Guide v3, and this will list all the available options. Best way, is look in the web interface. Copy the option you want verbatim off the web screen, and put a _ where a space is, ie Time Zone become Time_Zone. Use the Date Format of "month/day" (without the quotes) to have date in American format.

BTW - the daylight savings rule as defined in the config is for those people unfortunate to live in the southern hemisphere. Because of a bug in the firmware, we have to observer DST when we dont and vice versa. If you live in the Northern hemisphere, then put in your correct DST string.



vbigboss
Posts: 56
Member Since:
2007-05-01
Please explain

please explain how to use this package?

--

Osama ChamsiPasha
www.seliasoft.com



vbigboss
Posts: 56
Member Since:
2007-05-01
Ignore my last question

Ignore my last question , i found the readme file. now after doing everything i got this error when i click on linksys devices in End Point Configuration:
Warning: Division by zero in /var/www/html/maint/modules/11_endpointcfg/endpoint_linksys.php on line 38

Warning: main(php’): failed to open stream: No such file or directory in /var/www/html/maint/modules/11_endpointcfg/endpoint_linksys.php on line 38

Warning: main(): Failed opening 'php’' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/maint/modules/11_endpointcfg/endpoint_linksys.php on line 38

Please advice

--

Osama ChamsiPasha
www.seliasoft.com



vbigboss
Posts: 56
Member Since:
2007-05-01
2nd conment

even with the error, it seem working fine.

Now lets discuss another issue about linksys phones, the directory, linksys phones got 2 types of directory, public whick can work only with stupid device spa900 and private which is very hard to fill. my question:
is there a way to read the asterisk address book (the one speed dial) and auto fill linksys private address book with each sync????

thanks, you did a very nice job

--

Osama ChamsiPasha
www.seliasoft.com



kelvins
Posts: 9
Member Since:
2007-04-20
The error has come about

The error has come about most likely because the release is now 2.2.8. I did this with 2.2.4. I will download and have a look at, perhaps even rezip the package. Was actually hoping it might make it into the endpoint manager itself.

As I am aware, there is no private address book sync. Most likely as there is no way to set one up in FreePBX. If the numbers won't change that often, you can put them into the spa$MA.cfg config file while is unique for each phone.



vbigboss
Posts: 56
Member Since:
2007-05-01
I'm using 2.2.3

I'm using 2.2.3 not the new 2.2.8 yet.

I know that there is no address book sync, but maybe we can write a code which can push it to each phone, something like this:
http://grimsy.blogspot.com/2007/02/spa942-personal-directory-ldap...

--

Osama ChamsiPasha
www.seliasoft.com



kelvins
Posts: 9
Member Since:
2007-04-20
As a manual hack, you can

As a manual hack, you can populate the spa$MA.cfg file, then send a resync URL to the phone. This will cause it to rereads its configs from the server.



alexsys
Posts: 1
Member Since:
2008-07-02
linksys spa

Hi all!
Have a quistion. After factory reset on spa921(901) need manualy set resync period
becouse the spa don't get spa$MA.cfg from tftp. Any ideas ?
-----
Jul 01 14:15:56 trixbox1.localdomain atftpd[27072.-1208820848]: Serving /spa_gen eral.cfg to 192.168.0.23:43946
Jul 01 14:45:38 trixbox1.localdomain atftpd[27242.-1208063088]: Serving /spa901. cfg to 192.168.0.23:28600
Jul 01 14:45:38 trixbox1.localdomain atftpd[27242.-1208063088]: Serving /spa901_ specific.cfg to 192.168.0.23:28254
Jul 01 14:45:38 trixbox1.localdomain atftpd[27242.-1208063088]: Serving /spa_gen eral.cfg to 192.168.0.23:44073
and stand before manualy resync :(

--

Alex



colinjack
Posts: 331
Member Since:
2006-06-01
Any chance of downloading the files?

Hi Kelvin,

Your URL for downloading the modified files doesn't work any more.

Can you relink?

Thanks

Colin

--

Colin



ataconfig
Posts: 1
Member Since:
2008-10-16
Provisioning pap2 linksys and sipuras 2000/2100

Hi..

To provisioning and remote configuration for SPA and Linksys PAP2 visit this site.

www.ataconfig.com

This tool include anti-reset system. (against **** 73738 #)

Regards.
Carlos Alonso



gsigalas
Posts: 75
Member Since:
2006-11-04
Can anybody send a link with

Can anybody send a link with the modfications as the primary one is not ...there ...



gsigalas
Posts: 75
Member Since:
2006-11-04
bump

Anyone ???



yiannos
Posts: 53
Member Since:
2007-01-31
Oooopsss! Sorry, I just saw

Oooopsss!

Sorry, I just saw this post. Had forgotten all about it.....

I found the old file and put it up on a server of mine. I hope Kelvin does not mind...

If there is any prob with this, let m know and I ll remove it.

http://www.real.gr/provisioning_linksys_mod.tar.gz



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.