A script samples – CounterPath Bria 4 Provisioning Guide - Enterprise Deployments User Manual

Page 25

Advertising
background image

21

A Script Samples

Contact CounterPath to obtain sample scripts.

login.php

Custom login script. Bria passes in the username and password. After verification, if the login credential is
correct, the server will write the proper settings into the response and send it back to Bria.

See “Use of Scripts and Macros” on page 5 for an example that uses this script.

exe_upgrade.php

Bria passes in the buildstamp. You may want to revise the script to also pass in the platform. It returns success is
true or false, plus the URL where the upgrade of the Bria executable is located.

See “Remote Upgrade” on page 17.

These sample scripts, written in PHP, are intended to illustrate a possible implementation. They are not
intended to be used without modification. You should write scripts suitable to your environment, in an
appropriate scripting language.

Advertising