38 • Scripting
[
S N O M
4 S P
R O X Y
/ R
E G I S T R A R
M
A N U A L
]
snom technology AG • 39
[
S N O M
4 S P
R O X Y
/ R
E G I S T R A R
M
A N U A L
]
Other Operators
The comma operator “,” just evaluates both left and right hand
side and return the value of the right hand side.
The dot operator “.” concatenates the left string value with the
right hand string value.
Operator Precedence
The following table shows the precedence of the available
operators:
9:
,
8:
=
7:
||
6:
&&
5:
== !=
4:
< <= > >=
3:
+ - .
2:
* / %
1:
!
Functions
Functions always return a string value. You can define functions
in the domain script as you wish.
Function names are similar to variables with the difference that
function names do not contain the leading dollar sign. Function names are
like most of the proxy functionality non case-sensitive.
The built-in functions are described later in this document.
Definition
Functions are defines on the top level of a script. That means it’s
not possible to define nested functions (functions within a function).
The syntax for a function definition looks like this:
Func ( arg1, arg2, arg3 ) { body }
The name of the function must be followed by brackets enclosing
a list of arguments (separated by comma). If the list is empty it still needs
6.
Summary of Contents for 4S Media Server
Page 1: ...Administrator s Manual snom 4S SIP Proxy Registrar Version 2 30 ...
Page 14: ...14 VoIP Protocol S N O M 4 S P R O X Y R E G I S T R A R M A N U A L 1 ...
Page 84: ...84 Routing S N O M 4 S P R O X Y R E G I S T R A R M A N U A L 10 ...
Page 98: ...98 Maintenance S N O M 4 S P R O X Y R E G I S T R A R M A N U A L 13 ...