default_expires
(integer)min_expires
(integer)max_expires
(integer)default_q
(integer)append_branches
(integer)use_domain
(integer)case_sensitive
(integer)desc_time_order
(integer)received_avp
(integer)received_param
(integer)max_contacts
(integer)retry_after
(integer)sock_flag
(integer)sock_hdr_name
(string)save(domain)
save_noreply(domain)
lookup(domain)
registered(domain)
add_sock_hdr(hdr_name)
default_expires
parametermin_expires
parametermax_expires
parameterdefault_q
parameterappend_branches
parameteruse_domain
parametercase_sensitive
parameterdesc_time_order
parameterreceived_avp
parameterreceived_param
parametermax_contacts
parameterretry_after
parametersock_flag
parameterretry_after
parametersave
usagesave_noreply
usagelookup
usageregistered
usageadd_sock_hdr
usageThe module contains REGISTER processing logic.
The following modules must be loaded before this module:
usrloc - User Location Module.
sl - Stateless Replies.
The following libraries or applications must be installed before running OpenSER with this module loaded:
None.
default_expires
(integer)If the processed message contains neither Expires HFs nor expires contact parameters, this value will be used for newly created usrloc records. The parameter contains number of second to expire (for example use 3600 for one hour).
Default value is 3600.
min_expires
(integer)The minimum expires value of a Contact, values lower than this minimum will be automatically set to the minimum. Value 0 disables the checking.
Default value is 60.
max_expires
(integer)The maximum expires value of a Contact, values higher than this maximum will be automatically set to the maximum. Value 0 disables the checking.
Default value is 0.
default_q
(integer)The parameter represents default q value for new contacts. Because ser doesn't support float parameter types, the value in the parameter is divided by 100 and stored as float. For example, if you want default_q to be 0.38, use value 38 here.
Default value is 0.
append_branches
(integer)The parameter controls how lookup function processes multiple contacts. If there are multiple contacts for the given username in usrloc and this parameter is set to 1, Request-URI will be overwritten with the highest-q rated contact and the rest will be appended to sip_msg structure and can be later used by tm for forking. If the parameter is set to 0, only Request-URI will be overwritten with the highest-q rated contact and the rest will be left unprocessed.
Default value is 1.
use_domain
(integer)If set to 1 then the registrar will use username@domain as address of record. If the variable is set to 0 then only username will be used as the address of record.
Default value is 0.
case_sensitive
(integer)If set to 1 then AOR comparison will be case sensitive, if set to 0 then AOR comparison will be case insensitive--This is recommended.
Default value is 0.
desc_time_order
(integer)If set to 1 then all contacts will be ordered in descending modification time order. In this case the most recently updated/created contact will be used.
Default value is 0.
received_avp
(integer)Registrar will store the value of the AVP configured by this parameter in the received column in the user location database. It will leave the column empty if the AVP is empty. The AVP should contain a SIP URI consisting of the source IP, port, and protocol of the REGISTER message being processed.
The value of this parameter should be the same as the value of corresponding parameter of nathelper module. |
Default value is 42.
received_param
(integer)The name of the parameter that will be appended to Contacts of 200 OK when the received URI was set by nathelper module.
Default value is "received".
max_contacts
(integer)The parameter can be used to limit the number of contacts per AOR (Address of Record) in the user location database. Value 0 disables the check.
Default value is 0.
retry_after
(integer) The registrar can generate 5xx reply to REGISTER in various
situations. It can, for example, happen when the
max_contacts
parameter is set and the
processing of REGISTER request would exceed the limit. In this case
the registrar would generate "503 Service Unavailable" response.
If you want to add the Retry-After header field in 5xx replies, set this parameter to a value grater than zero (0 means do not add the header field). See section 20.33 of RFC3261 for more details.
Default value is 0 (disabled).
sock_flag
(integer)Flag to signal to register module to look into REGISTER request for a header which contains a socket description (IP:port). This socket info will be stored by register instead of the received socket info.
This make sens only in multiple replicated servers scenarios.
Default value is -1 (no flag).
sock_hdr_name
(string)Header which contains a socket description (IP:port) to overide the the received socket info. The heaer will be read only if the flag sock_flag is set.
This make sens only in multiple replicated servers scenarios.
Default value is NULL.
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.
save_noreply(domain)
Same as save()
but it doesn't send a reply.
Meaning of the parameters is as follows:
domain - Logical domain within registrar. If database is used then this must be na e of the table which stores the contacts.
lookup(domain)
The functions extracts username from Request-URI and tries to find all contacts for the username in usrloc. If there are no such contacts, -1 will be returned. If there are such contacts, Request-URI will be overwritten with the contact that has the highest q value and optionally the rest will be appended to the message (depending on append_branches parameter value).
Meaning of the parameters is as follows:
domain - Name of table that should be used for the lookup.
registered(domain)
The function returns true if the AOR in the Request-URI is registered, false otherwise. The function does not modify the message being process, it neither rewrites the Request-URI if a contact is found not append branches.
Meaning of the parameters is as follows:
domain - Name of table that should be used for the lookup.
add_sock_hdr(hdr_name)
Adds to the current REGISTER request a new header with "hdr_name" which contains the description of the received socket (ip:port)
This make sens only in multiple replicated servers scenarios.
Meaning of the parameters is as follows:
hdr_name - header name to be used.
Take a look at http://openser.org/.
First at all check if your question was already answered on one of our mailing lists:
User Mailing List - http://openser.org/mailman/listinfo/users
Developer Mailing List - http://openser.org/mailman/listinfo/devel
E-mails regarding any stable OpenSER release should be sent to
<users@openser.org>
and e-mails regarding development versions
should be sent to <devel@openser.org>
.
If you want to keep the mail private, send it to
<team@openser.org>
.
Please follow the guidelines provided at: http://openser.org/bugs.