Other Functions - Snom 4S Administrator's Manual

Sip proxy/registrar version 2.30
Table of Contents

Advertisement

[
S N O M

Other Functions

create_message
The create_message function generates a request string that can
be stored in the store-and-forward buffer of a user account. This function
is helpful for generating welcomes messages and other information
messages.
The function takes seven arguments. The first argument identifies
the From-Header, the second the To-Header of the request. Argument
number three indicates the method (typically "MESSAGE" or "NOTIFY"),
the fourth argument the event type of the request (this argument can
be left empty in some cases). The argument number five indicates
the Content-Type of the request. The sixth argument indicates the file
that contains the actual attachment, the seventh argument indicates
the request_uri. This uri can be left blank in most cases as it will be
overwritten by the sending procedure.
store_message
To put a message into the store-and-forward buffer of an account,
you may use the store_message function.
It takes as arguments the account and the message string, which
is typically generated by the create_message function.
create_user
The proxy does not create a user by default, it needs an explicit
call to do so. The create_user takes as argument the name of the account
which will contain the user, the name for challenging and the password. If
the name is empty, it is replaced with the account. THis makes it possible
to call this function only with the account name if no credentials need to
be set up with this account.
set_parameter
Accounts may have parameters that are stored permanently. The
set_parameter takes three arguments. The first argument is the name of
the account, the second parameter the name of the variable and the third
parameter the value that should be assigned to the variable.
48 • Scripting
4 S P
/ R
R O X Y
E G I S T R A R
M
]
A N U A L

Advertisement

Table of Contents
loading

Table of Contents