#include <string.h>
#include <stdio.h>
#include "../../mem/mem.h"
#include "../../data_lump.h"
#include "../../parser/parse_param.h"
#include "path.h"
#include "path_mod.h"

Go to the source code of this file.
Defines | |
| #define | PATH_CRLF ">\r\n" |
| #define | PATH_CRLF_LEN (sizeof(PATH_CRLF)-1) |
| #define | PATH_LR_PARAM ";lr" |
| #define | PATH_LR_PARAM_LEN (sizeof(PATH_LR_PARAM)-1) |
| #define | PATH_PREFIX "Path: <sip:" |
| #define | PATH_PREFIX_LEN (sizeof(PATH_PREFIX)-1) |
| #define | PATH_RC_PARAM ";received=" |
| #define | PATH_RC_PARAM_LEN (sizeof(PATH_RC_PARAM)-1) |
Functions | |
| int | add_path (struct sip_msg *_msg, char *_a, char *_b) |
| Prepend own uri to Path header. | |
| int | add_path_received (struct sip_msg *_msg, char *_a, char *_b) |
| Prepend own uri to Path header and append received address as "received"-param to that uri. | |
| int | add_path_received_usr (struct sip_msg *_msg, char *_usr, char *_b) |
| Prepend own uri to Path header and append received address as "received"-param to that uri and take care of given user. | |
| int | add_path_usr (struct sip_msg *_msg, char *_usr, char *_b) |
| Prepend own uri to Path header and take care of given user. | |
| void | path_rr_callback (struct sip_msg *_m, str *r_param, void *cb_param) |
| rr callback | |
| static int | prepend_path (struct sip_msg *_m, str *user, int recv) |
Definition in file path/path.c.
| #define PATH_CRLF ">\r\n" |
| #define PATH_CRLF_LEN (sizeof(PATH_CRLF)-1) |
| #define PATH_LR_PARAM ";lr" |
| #define PATH_LR_PARAM_LEN (sizeof(PATH_LR_PARAM)-1) |
| #define PATH_PREFIX "Path: <sip:" |
| #define PATH_PREFIX_LEN (sizeof(PATH_PREFIX)-1) |
| #define PATH_RC_PARAM ";received=" |
| #define PATH_RC_PARAM_LEN (sizeof(PATH_RC_PARAM)-1) |
| int add_path | ( | struct sip_msg * | _msg, | |
| char * | _a, | |||
| char * | _b | |||
| ) |
Prepend own uri to Path header.
Definition at line 169 of file path/path.c.
References prepend_path(), and user.
Referenced by send_reply().
| int add_path_received | ( | struct sip_msg * | _msg, | |
| char * | _a, | |||
| char * | _b | |||
| ) |
Prepend own uri to Path header and append received address as "received"-param to that uri.
Definition at line 188 of file path/path.c.
References prepend_path(), and user.
| int add_path_received_usr | ( | struct sip_msg * | _msg, | |
| char * | _usr, | |||
| char * | _b | |||
| ) |
Prepend own uri to Path header and append received address as "received"-param to that uri and take care of given user.
Definition at line 198 of file path/path.c.
References prepend_path().
| int add_path_usr | ( | struct sip_msg * | _msg, | |
| char * | _usr, | |||
| char * | _b | |||
| ) |
Prepend own uri to Path header and take care of given user.
Definition at line 179 of file path/path.c.
References prepend_path().
rr callback
Definition at line 206 of file path/path.c.
References param::body, CLASS_CONTACT, param_hooks::contact, free_params(), LM_ERR, params, parse_params(), contact_hooks::received, and set_dst_uri().
Referenced by mod_init().
Definition at line 55 of file path/path.c.
References anchor_lump(), sip_msg::buf, CRLF_LEN, HDR_PATH_F, HDR_PATH_T, sip_msg::headers, insert_new_lump_before(), insert_subst_lump_before(), ip_addr2a(), IP_ADDR_MAX_STR_SIZE, _str::len, LM_ERR, hdr_field::name, hdr_field::next, parse_headers(), PATH_CRLF, PATH_CRLF_LEN, PATH_LR_PARAM, PATH_LR_PARAM_LEN, PATH_PREFIX, PATH_PREFIX_LEN, PATH_RC_PARAM, PATH_RC_PARAM_LEN, pkg_free, pkg_malloc, prefix, receive_info::proto, PROTO_SCTP, PROTO_TCP, PROTO_TLS, PROTO_UDP, sip_msg::rcv, _str::s, snprintf, receive_info::src_ip, receive_info::src_port, SUBST_SND_ALL, suffix, hdr_field::type, and sip_msg::unparsed.
Referenced by add_path(), add_path_received(), add_path_received_usr(), and add_path_usr().
1.5.6