1.4.1. save(domain)
The function processes a REGISTER
message. It can add, remove or modify usrloc records
depending on Contact and Expires HFs in the REGISTER
message. On success, 200 OK will be returned listing all contacts that are
currently in usrloc. On an error, error message will
be send with a short description in reason phrase.
Meaning of the parameters is as
follows:
·
domain - Logical domain within registrar. If database
is used then this must be name of the table which stores the contacts.
This function can be used from
REQUEST_ROUTE.
Example 1-20. save
usage
...
save("location");
...
1.4.2. save(domain,flags)
Same as save()
but it accepts a set of flags for controlling its behaviour.
Meaning of the parameters is as
follows:
·
domain - Logical domain within registrar. If database
is used then this must be name of the table which stores the contacts.
·
flags
- the value may be a bitwise OR of the following flags:
·
0x01
- save the contacts only in memory cache without no DB operation;
·
0x02
- do not generate a SIP reply to the current REGISTER request.
The flags may be given in decimal or
hexa format.
This function can be used from
REQUEST_ROUTE.
Example 1-21. save
usage
...
save("location","0x01");
...
http://www.openser.org/docs/modules/1.2.x/registrar.html#AEN302