$Revision: 1.5 $
$Date: 2006/03/18 16:46:43 $

# Parameters

## `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).

### Set `enable_full_lr` parameter

    ...
    modparam("rr", "enable_full_lr", 1)
    ...

## `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).

### Set `append_fromtag` parameter

    ...
    modparam("rr", "append_fromtag", 0)
    ...

## `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).

### Set `enable_double_rr` parameter

    ...
    modparam("rr", "enable_double_rr", 0)
    ...

## `user_part_avp` (string)

If this parameter is set, the loose_route call stores the user part of the route URI in the AVP, which is identified by the parameter value. It can be utilized later in the routing script.

Default value is NULL (do not insert user part into avps).

### Set `user_part_avp` parameter, later use

    ...
    modparam("rr", "user_part_avp", "route_user")
    ...
    route{
    ...
    	if (loose_route()) {
    		t_relay();
    	}

    	if ($route_user == "my_user") {
    		...
    	}
    ...
    }

## `next_route_avp` (string)

If this parameter is set, the loose_route call stores the URI of the next hop in the AVP, which is identified by the parameter value. It can be then utilized in the routing script.

Default value is NULL (do not insert next route into avps).

### Set `next_route_avp` parameter, later use

    ...
    modparam("rr", "next_route_avp", "route_next")
    ...
    route{
    ...
    	loose_route();

    	if ($route_next=~"101.102.103.1[0-9][0-9]") {
    		t_relay();
    	}

## `cookie_secret` (string)

Secret to distinguish cookies from different servers.

Default value is empty string.

### Set `cookie_secret` parameter, later use

    ...
    modparam("rr", "cookie_secret", "bflmpsvz")
    ...