cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

How do conditional expressions work on MPP Phones? (upgrades rules and profile rules)

156
Views
0
Helpful
0
Comments

Conditional expressions can be used to apply a particular profile rule or upgrade rule, based on various factors, for example the phone model or firmware version.

Comparing Version Numbers

Multiplatform phones (MPP) formal release software version uses this format, where BN==Build Number:

  • v1-v2-v3MPP-BN

The comparing string must use the same format. Otherwise, it results in a format parsing error.

In the software version, v1-v2-v3-v4 can specify different digits and characters, but must start with a numeric

digit. When comparing the software version, v1-v2-v3-v4 is compared in sequence, and the leftmost digits

take precedence over the latter ones.

If v[x] includes only numeric digits, the digits are compared; if v[x] includes numeric digits + alpha characters,

digits are compared first, then characters are compared in alphabetical order.

Example of Valid Version Number:

  • 11-0-0MPP-BN

Example comparison:

sip88xx.11-0-0MPP-BN > sip88xx.9-3-1-7MPP-BN

Operators

1.png

Examples

In the example below, the rule checks if the phone’s firmware is greater or equal to sip78xx.11-0-0MPP-7. If this is true, then the phone will upgrade to sip78xx.11-2-1MES-3.loads, otherwise (“|” is used to denote the next possible result), it will upgrade to sip78xx.11-0-0MPP-7.loads.

<Upgrade_Rule ua="na">($SWVER ge sip78xx.11-0-0MPP-7)? HTTP://SERVER_ADDRESS/sip78xx.11-2-1MES-3.loads| HTTP://SERVER_ADDRESS/sip78xx.11-0-0MPP-7.loads </Upgrade_Rule>