Provisioning variable with current date/time?

When phones request provisioning profiles, are they generated on the fly or are they stored as a file at the time the phone is set up and only changed when somebody touches the phone again?

In either case, is there a variable I can use in the provisioning template that contains the current date and time? I use this as part of a custom user agent so I can see quickly whether a phone has a current provisioning profile or not.

While we’re at this – is there a master list of all the variables available to be used within provisioning templates?

The files are saved under

/var/lib/vitalpbx/provisioning/provisioning_templates/<tenant_path>

You can use

{{ date('Y-m-d H:i:s') }}

The date is in UTC and will be updated every time you modify the provisioning

The available variables are below, some of them are strings and some arrays or named arrays, but you can always use custom PHP in double curly braces

accounts, 
profiles, 
settings, 
language, 
timezone, 
summerTime, 
timeFormat, 
dateFormat, 
daylightSavings, 
dssKeys, 
sideKeys, 
mpkKeys, 
fixedVpkKeys, 
dynamicVpkKeys, 
expansionModuleKeys, 
openvpn, 
phonebook, 
wallpaper, 
wallpaperName, 
blfPressSettings, 
ringtones, 
buttonIcons, 
dndBlfServerSync, 
adminPassword, 
connectionSettings, 
filename
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.