path/path.c File Reference

Path :: Utilities. More...

#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"

Include dependency graph for path/path.c:

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)


Detailed Description

Path :: Utilities.

Definition in file path/path.c.


Define Documentation

#define PATH_CRLF   ">\r\n"

Definition at line 52 of file path/path.c.

Referenced by prepend_path().

#define PATH_CRLF_LEN   (sizeof(PATH_CRLF)-1)

Definition at line 53 of file path/path.c.

Referenced by prepend_path().

#define PATH_LR_PARAM   ";lr"

Definition at line 46 of file path/path.c.

Referenced by prepend_path().

#define PATH_LR_PARAM_LEN   (sizeof(PATH_LR_PARAM)-1)

Definition at line 47 of file path/path.c.

Referenced by prepend_path().

#define PATH_PREFIX   "Path: <sip:"

Definition at line 43 of file path/path.c.

Referenced by prepend_path().

#define PATH_PREFIX_LEN   (sizeof(PATH_PREFIX)-1)

Definition at line 44 of file path/path.c.

Referenced by prepend_path().

#define PATH_RC_PARAM   ";received="

Definition at line 49 of file path/path.c.

Referenced by prepend_path().

#define PATH_RC_PARAM_LEN   (sizeof(PATH_RC_PARAM)-1)

Definition at line 50 of file path/path.c.

Referenced by prepend_path().


Function Documentation

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().

void path_rr_callback ( struct sip_msg _m,
str r_param,
void *  cb_param 
)

static int prepend_path ( struct sip_msg _m,
str user,
int  recv 
) [static]


Generated on Thu May 24 02:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6