Copyright © 2003 FhG FOKUS
Copyright © 2005 voice-system.ro
enable_full_lr
(integer)append_fromtag
(integer)enable_double_rr
(integer)add_username
(integer)loose_route()
strict_route()
-- deprecatedrecord_route()
record_route_preset(string)
add_rr_param(param)
check_route_param(re)
enable_full_lr
parameterappend_fromtag
parameterenable_double_rr
parameteradd_username
parameterloose_route
usagestrict_route
usagerecord_route
usagerecord_route_preset
usageadd_rr_param
usagecheck_route_param
usageThe module contains record routing logic
The following modules must be loaded before this module:
No dependencies on other OpenSER modules.
The following libraries or applications must be installed before running OpenSER with this module loaded:
None.
enable_full_lr
(integer)If set to 1 then ;lr=on instead of just ;lr will be used. This is to overcome problems with broken UAs which strip ;lr parameter when generating Route header fields from Record-Route (;lr=on seems to help).
Default value is 0 (no).
append_fromtag
(integer)if turned on, request's from-tag is appended to record-route; that's useful for understanding whether subsequent requests (such as BYE) come from caller (route's from-tag==BYE's from-tag) or callee (route's from-tag==BYE's to-tag)
Default value is 1 (yes).
enable_double_rr
(integer)There are some situations when the server needs to insert two Record-Route header fields instead of one. For example when using two disconnected networks or doing cross-protocol forwarding from UDP->TCP. This parameter enables inserting of 2 Record-Routes. The server will later remove both of them.
Default value is 1 (yes).
add_username
(integer)If set to a non 0 value (which means yes), the username part will be also added in the Record-Route URI.
Default value is 0 (no).
loose_route()
The function performs loose routing as defined in RFC3261. See the RFC3261 for more details.
strict_route()
-- deprecatedIf there are any Route HFs in the message, the function takes the first one, rewrites Request-URI with it's value and removes the first URI from Route HFs.
record_route()
The function adds a new Record-Route header field. The header field will be inserted in the message before any other Record-Route header fields.
record_route_preset(string)
This function will put the string into Record-Route, don't use unless you know what you are doing.
Meaning of the parameters is as follows:
string - String to be inserted into the header field.
add_rr_param(param)
Adds a parameter to the Record-Route URI (param must be in ";name=value" format. The function may be called also before or after the record_route() call.
Meaning of the parameters is as follows:
param - String containing the URI parameter to be added. It must follow the ";name=value" scheme.
check_route_param(re)
The function check if the URI parameters of the local Route header (coresponding to the local server) matches the given regular expression. It must be call after loose_route().
Meaning of the parameters is as follows:
re - regular expression to check against the Route URI parameters.
The module does not provide any sort of API to use in other OpenSER modules.
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.