Route & Record-Route module, loose routing support. More...
#include <regex.h>#include "../../str.h"#include "../../parser/msg_parser.h"

Go to the source code of this file.
Definition in file modules_k/rr/loose.h.
| int check_route_param | ( | struct sip_msg * | msg, | |
| regex_t * | re | |||
| ) |
The function checks for the request "msg" if the URI parameters of the local Route header (corresponding to the local server) matches the given regular expression "re". It must be call after the loose_route was done.
| msg | SIP message request that will has the Route header parameters checked | |
| re | compiled regular expression to be checked against the Route header parameters |
Definition at line 865 of file modules_k/rr/loose.c.
References sip_msg::id, _str::len, routed_msg_id, and _str::s.
The function search in to the "msg"'s Route header parameters the parameter called "name" and returns its value into "val". It must be call only after the loose_route is done.
| msg | - request that will have the Route header parameter searched | |
| name | - contains the Route header parameter to be serached | |
| val | returns the value of the searched Route header parameter if found. It might be an empty string if the parameter had no value. |
Definition at line 909 of file modules_k/rr/loose.c.
References sip_msg::id, _str::len, routed_msg_id, and _str::s.
Referenced by is_direction().

| int is_direction | ( | struct sip_msg * | msg, | |
| int | dir | |||
| ) |
The function checks the flow direction of the request "msg". As for checking it's used the "ftag" Route header parameter, the append_fromtag module parameter must be enables. Also this must be call only after the loose_route is done.
| msg | SIP message request that will have the direction checked | |
| dir | direction to be checked against. It may be RR_FLOW_UPSTREAM or RR_FLOW_DOWNSTREAM |
Definition at line 1001 of file modules_k/rr/loose.c.
References get_route_param(), sip_msg::id, _str::len, parse_from_header(), hdr_field::parsed, and _str::s.

| int loose_route | ( | struct sip_msg * | _m | ) |
| _m | SIP message |
Definition at line 824 of file modules_k/rr/loose.c.
References after_loose(), after_strict(), find_first_route(), is_myself(), is_preloaded(), and sip_msg::parsed_uri.
Referenced by w_loose_route().


1.7.1