Skip to main content

Auto-provisioning doesn't update existing files?

Posted by justdave on Wed, 10/22/2008

After upgrading to 6.0.1.63, I've discovered that trying to edit the provisioned settings on a phone which was provisioned by an earlier version of Thirdlane doesn't seem to work. For example, I wanted to add a second line appearance to a phone, so I went to Auto-provisioning, found the phone in question, changed the "All Lines" popup to "Line 1", clicked "Add Button", set the second one to "Line 2" and filled in the details, then clicked the "Save and Provision" button. Going back to look at that phone again, the changes I made are gone, and the config file for the phone on disk hasn't been touched. In the end, I ended up manually editing the file in the tftpboot directory.

Anyone else seeing this problem?


Submitted by justdave on Wed, 10/22/2008 Permalink

I forgot to mention, provisioning a new phone still seems to work just fine though, it's just editing an existing one that doesn't seem to be working.

Submitted by justdave on Wed, 10/22/2008 Permalink

OK, through some experimenting, I think I figured this out. The current version of PBX Manager removes the colons from the MAC address before saving it in devices.txt. Older versions didn't do that, and would record it exactly how you entered it. The older phones in devices.txt have colons in the identifiers. I just ran a quick sed script to strip all the colons out and now everything seems to work.

Is this something that should be caught by an upgrade script, since older versions allowed it?

Submitted by justdave on Wed, 10/22/2008 Permalink

Yeah, confirmed. Current version removes the colons and forces it uppercase when you create a new phone, and apparently editing an existing one chokes if it's not in that format already. My old devices.txt had a good mix of with and without colons, both upper and lowercase. :) What a mess. All cleaned up now though.

Submitted by justdave on Wed, 10/22/2008 Permalink

Heh, just a side note, I just discovered that when I edit the auto-provisioning record for a phone, it tells the phone to reboot now. :) That's pretty cool. It didn't used to do that, though, and it caught me offguard. I had started editing a few records filling in some missing superfluous information (descriptions, line labels, etc), and all the sudden had people telling me their phones were rebooting. So good idea to do that off-hours when there aren't people in the office. :)