Skip to main content

User Defined Variables

Posted by dozment on Tue, 03/23/2010

How does "System variables for replacement in provisioning templates" on the Provisioning Settings screen work? I created a variable called Registar, and I would like for that it to be the ip address to which I want my customer's phones to register. I use Edgemarc routers, so I want the phones to always use the Edgemarc as the registrar. So, normally registrar will be set to "192.168.1.1". But, some customers use different networks like 10.0.0.0. Can I set registrar at the tenant level?


Submitted by mattdarnell on Tue, 03/23/2010 Permalink

Right now we have five config files in the MAC.cfg file.

TENANT.cfg - Shared by all phones belonging to tenant - This is where we put an alternate registrar
MAC-registration.cfg - Created by TL
makai.cfg - Shared settings by all phones
Local-Settings.cfg - Created by TL
sip.cfg - Standard Polycom file

We had to add files so that custom settings would survive a re-provisioning and upgrade.

-Matt

Submitted by dozment on Tue, 03/23/2010 Permalink

We do basically the same thing, Matt. I create my tenant.cfg files manually using Thirdlane hooks to call a script when a tenant is created. The tenant file that it creates is generic based on a template. I put the registrar address in teh tenant file and edit it manually if the tenant's network is different.

Having to edit it manually means that I'm limited as to who can make those changes. If we could entere the registrar address using a variable set at the tenant level any of my folks could set it.

Submitted by mattdarnell on Wed, 03/24/2010 Permalink

I must have gotten that from you!

Being able to set that variable from the GUI would be cool.

We have two templates we use, one for three digit extensions and one for four digit extensions.

-Matt

Submitted by thirdlane on Mon, 03/29/2010 Permalink

I think we will add variables associated with different entities - tenant being one of them. What else would you find useful - user extension level variables? Anything else?

And I wonder what thoughts may be re "dialplan available" variables (so they could be used by scripts) vs "simple" variables that are just part of the entity and available to hooks?