A script samples – CounterPath Bria Professional 2.5 Provisioning Guide User Manual

Page 25

Advertising
background image

Provisioning Bria Professional OEM Edition

21

A Script Samples

Contact CounterPath to obtain sample scripts.

login.php

Custom login script. Bria Professional 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
Professional.

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

exe_upgrade.php

Bria Professional 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 Professional executable is located.

See “Remote Upgrade” on page 18.

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