Download Print this page

Grandstream Networks XML Application Manual page 14

Part a – application explanations part b – xml syntax, technical detail, file examples

Advertisement

The string can contain dynamic contents. As present, we support the following 18 system variables that will
be substituted with dynamic contents at run-time.
1. $W: This variable is replaced with the current day of week and has the following possible values:
Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
2. $N: This variable is replaced with the configured Account 1 Display Name.
3. $X: This variable is replaced with the configured Account 1 SIP User ID.
4. $V: This variable is replaced with the configured Account 1 SIP Server.
5. $I: This variable is replaced with the system IP address.
6. $D: This variable is replaced with the current day of month with leading zero, possible values:
01, 02, ..., 31
7. $d: This variable is replaced with the current day of month without leading zero, possible values:
1, 2, ..., 31
8. $M: This variable is replaced with the current month in English, possible values:
January, February, ..., December
9. $o: This variable is replaced with the current month in number with leading zero, possible values:
01, 02, ..., 12
10. $n: This variable is replaced with the current month in number without leading zero, possible
values:
1, 2, ..., 12
11. $Y: This variable is replaced with the current year in 4-digit number, for example:
2006, 2007 ...
12. $y: This variable is replaced with the current year in 2-digit number, for example:
06, 07 ...
13. $P: This variable is replaced with the current AM/PM status in upper case, possible values:
AM, PM
14. $p: This variable is replaced with the current AM/PM status in lower case, possible values:
am, pm
15. $H: This variable is replaced with the current hour of day in 24-hour representation with leading
zero, possible values:
00, 02, ..., 23
16. $h: This variable is replaced with the current hour of day in 12-hour representation with leading
zero, possible values:
01, 02, ..., 12
17. $m: This variable is replaced with the current minute of hour with leading zero, possible values:
01, 02, ..., 59
18. $s: This variable is replaced with the current second of minute with leading zero, possible values:
01, 02, ..., 59
Note: If you want to display the "$" sign, you will use "$$" escape sequence.
Elements X and Y
This element contains X and Y offsets from the origin that we will use to render the string.
<xsd:element
name="X" type="xsd:integer" minOccurs="1" maxOccurs="1"
<xsd:element
name="Y" type="xsd:integer" minOccurs="1" maxOccurs="1"
Attribute a1reg
This OPTIONAL attribute specifies the conditions when the string will be displayed.
<
xsd:attribute
When this attribute is present and the value is "true" then the string will be displayed ONLY when SIP
Account 1 is in REGISTERED state.
When this attribute is present and the value is "false" then the string will be displayed only when SIP
Account 1 is NOT in REGISTERED state.
Grandstream Networks, Inc.
name="alreg"
type="xsd:boolean"/>
XML Application Guide
default="0"/>
default="0"/>
Page 14 of 24
Last Updated: 3/2009

Advertisement

loading