BALANCE_FORMAT

BALANCE_FORMAT defines a format of balance string to display inside the phone.

The format string may include following parameters, which are replaced by softphone in realtime:

  • {BALANCE} - integer value
  • {PREFIX}   - currency sign (if it was sent by the server inside the response. See detaile here: BALANCE_PATTERN)

Examples:

!define BALANCE_FORMAT        "Balance: $$ {BALANCE}"
!define BALANCE_FORMAT        "Balance: {BALANCE}"
!define BALANCE_FORMAT        "$$ {BALANCE}"
!define BALANCE_FORMAT        "{PREFIX} {BALANCE}"
!define BALANCE_FORMAT        "$$ {BALANCE}"
!define BALANCE_FORMAT        "Saldo: {BALANCE}"

 

Please, note, if you need to use dolar sign inside format ($), put it twice ($$), because single '$' has special meaning inside NSIS scripts (installer-brand.nsi).

!define BALANCE_FORMAT        "Balance: $$ {BALANCE}"

 

Comments (0)