Copyright © 2003 FhG FOKUS
The module implements all the operations regarding MaX-Forward header field, like adding it (if not present) or decrementing and checking the value of the existent one.
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:
Set an upper limit for the max-forward value in the outgoing requests. This is the default value if the header is not present in the incoming request. If the header is present, the decremented value is not allowed to exceed this max_limits - if it does, the header value will by decreased to "max_limit".
It's a good way to deal with clients which set max-forward value to a quite high values (like 80).
Default value is "16".
If no Max-Forward header is present in the received request, a header will be added having the original value equal with "max_value". An OK code is returned by the function.
If a Max-Forward header is already present, its value will be decremented. If after this operation its value will be positive non-zero, an OK code will be returned. Otherwise (for a zero value) an error code will be returned. Note that an error code will be also returned if the SIP message couldn't be parsed or if the Max-Forward header's body invalid (non numerical string or negative numerical value).
Meaning of the parameters is as follows:
max_value - Value to be added if there is no Max-Forwards header field in the message.
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
If you want to keep the mail private, send it to
Please follow the guidelines provided at: http://openser.org/bugs.