from.c File Reference

#include <ctype.h>
#include "../../parser/parse_from.h"
#include "../../mem/mem.h"
#include "../../data_lump.h"
#include "../tm/h_table.h"
#include "../tm/tm_load.h"
#include "../rr/api.h"
#include "from.h"

Include dependency graph for from.c:

Go to the source code of this file.

Defines

#define text3B64_len(_l)   ( ( ((_l)+2)/3 ) << 2 )

Functions

static int decode_from (str *src, str *dst)
static int encode_from (str *src, str *dst)
static struct lumpget_fdisplay_anchor (struct sip_msg *msg, struct to_body *from, str *dsp)
void init_from_replacer (void)
int replace_from (struct sip_msg *msg, str *from_dsp, str *from_uri)
int restore_from (struct sip_msg *msg, int *is_from)
static void restore_from_reply (struct cell *t, int type, struct tmcb_params *p)
static void restore_to_reply (struct cell *t, int type, struct tmcb_params *p)
void rr_checker (struct sip_msg *msg, str *r_param, void *cb_param)

Variables

static int dec_table64 [256]
static char enc_table64 []
int from_restore_mode
static int msg_id = 0
str rr_param
str uac_passwd
struct rr_binds uac_rrb
struct tm_binds uac_tmb


Define Documentation

#define text3B64_len ( _l   )     ( ( ((_l)+2)/3 ) << 2 )

Definition at line 62 of file from.c.

Referenced by encode_from().


Function Documentation

static int decode_from ( str src,
str dst 
) [inline, static]

Definition at line 118 of file from.c.

References buf, dec_table64, _str::len, LM_ERR, MAX_URI_SIZE, and _str::s.

Referenced by restore_from().

static int encode_from ( str src,
str dst 
) [inline, static]

Definition at line 78 of file from.c.

References buf, enc_table64, _str::len, LM_ERR, MAX_URI_SIZE, _str::s, and text3B64_len.

Referenced by replace_from().

static struct lump* get_fdisplay_anchor ( struct sip_msg msg,
struct to_body from,
str dsp 
) [static, read]

void init_from_replacer ( void   ) 

Definition at line 67 of file from.c.

References dec_table64, and enc_table64.

Referenced by mod_init().

int replace_from ( struct sip_msg msg,
str from_dsp,
str from_uri 
)

int restore_from ( struct sip_msg msg,
int *  is_from 
)

void restore_from_reply ( struct cell t,
int  type,
struct tmcb_params p 
) [static]

void restore_to_reply ( struct cell t,
int  type,
struct tmcb_params p 
) [static]

void rr_checker ( struct sip_msg msg,
str r_param,
void *  cb_param 
)


Variable Documentation

int dec_table64[256] [static]

Definition at line 57 of file from.c.

Referenced by decode_from(), and init_from_replacer().

char enc_table64[] [static]

Initial value:

 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
      "abcdefghijklmnopqrstuvwxyz0123456789+/"

Definition at line 54 of file from.c.

Referenced by encode_from(), and init_from_replacer().

Definition at line 65 of file uac/uac.c.

Referenced by mod_init(), and replace_from().

int msg_id = 0 [static]

Definition at line 65 of file from.c.

Referenced by add_diversion_helper(), and restore_from_reply().

Definition at line 63 of file uac/uac.c.

Definition at line 64 of file uac/uac.c.

struct rr_binds uac_rrb

Definition at line 67 of file uac/uac.c.

Referenced by mod_init(), replace_from(), and restore_from().

struct tm_binds uac_tmb

Definition at line 66 of file uac/uac.c.


Generated on Wed May 23 06:01:03 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6