BALANCE_SERVER and BALANCE_PAGE specify the URL for quering of balance value via HTTP/HTTPS protocol.
Read details here: Display of Balance (HTTP method).
Examples:
!define BALANCE_SERVER "http://www.example.com
!define BALANCE_PAGE "/balance.php?account={LOGIN}&password={PASSWORD}"
URL may contain parameters, which are replaced automatically by softphone in real-time:
- {LOGIN} - login name
- {PASSWORD} - password
- {PASSWORD_MD5} - encrypted password with MD5 hash algorithm
If balance retreiving is done with secure connection (HTTPS), then use "https://" instead of "http://":
!define BALANCE_SERVER "https://www.example.com
In order to increase security, it is recommeded to send password in encrypted form (using MD5 hash algorithm):
!define BALANCE_PAGE "/balance.php?account={LOGIN}&password={PASSWORD_MD5}"The server should use the same algorithm (MD5) to check the validity of a password.
See also BALANCE_PATTERN.