t_msgbuilder.h File Reference

TM :: Message printing. More...

#include "../../ip_addr.h"
#include "dlg.h"

Include dependency graph for t_msgbuilder.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CALLID   "Call-ID: "
#define CALLID_LEN   (sizeof(CALLID)-1)
#define CSEQ   "CSeq: "
#define CSEQ_LEN   (sizeof(CSEQ)-1)
#define FROM   "From: "
#define FROM_LEN   (sizeof(FROM)-1)
#define FROMTAG   ";tag="
#define FROMTAG_LEN   (sizeof(FROMTAG)-1)
#define LOCAL_MAXFWD_VALUE   "70"
#define TO   "To: "
#define TO_LEN   (sizeof(TO)-1)
#define TOTAG   ";tag="
#define TOTAG_LEN   (sizeof(TOTAG)-1)

Functions

char * build_dlg_ack (struct sip_msg *rpl, struct cell *Trans, unsigned int branch, str *to, unsigned int *len)
char * build_local (struct cell *Trans, unsigned int branch, unsigned int *len, char *method, int method_len, str *to)
char * build_uac_cancel (str *headers, str *body, struct cell *Trans, unsigned int branch, unsigned int *len)
char * build_uac_req (str *method, str *headers, str *body, dlg_t *dialog, int branch, struct cell *t, int *len)
char * build_uac_request (str msg_type, str dst, str from, str fromtag, int cseq, str callid, str headers, str body, int branch, struct cell *t, unsigned int *len)
void check_hdrs_changes (struct sip_msg *msg)
 Check if From/To/CSeq were altered and set approriate flags.
char * print_callid_mini (char *target, str callid)
char * print_cseq_mini (char *target, str *cseq, str *method)
int t_calc_branch (struct cell *t, int b, char *branch, int *branch_len)


Detailed Description

TM :: Message printing.

Definition in file t_msgbuilder.h.


Define Documentation

#define CALLID   "Call-ID: "

Definition at line 45 of file t_msgbuilder.h.

Referenced by acc_log_init(), and print_callid_mini().

#define CALLID_LEN   (sizeof(CALLID)-1)

Definition at line 46 of file t_msgbuilder.h.

Referenced by build_uac_req(), print_callid(), and print_callid_mini().

#define CSEQ   "CSeq: "

Definition at line 41 of file t_msgbuilder.h.

Referenced by print_cseq_mini().

#define CSEQ_LEN   (sizeof(CSEQ)-1)

Definition at line 42 of file t_msgbuilder.h.

Referenced by build_uac_req(), print_cseq(), and print_cseq_mini().

#define FROM   "From: "

Definition at line 47 of file t_msgbuilder.h.

Referenced by print_from().

#define FROM_LEN   (sizeof(FROM)-1)

Definition at line 48 of file t_msgbuilder.h.

Referenced by build_uac_req(), and print_from().

#define FROMTAG   ";tag="

Definition at line 49 of file t_msgbuilder.h.

Referenced by acc_log_init(), and print_from().

#define FROMTAG_LEN   (sizeof(FROMTAG)-1)

Definition at line 50 of file t_msgbuilder.h.

Referenced by build_uac_req(), and print_from().

#define LOCAL_MAXFWD_VALUE   "70"

Definition at line 53 of file t_msgbuilder.h.

#define TO   "To: "

#define TO_LEN   (sizeof(TO)-1)

Definition at line 44 of file t_msgbuilder.h.

Referenced by build_uac_req(), and print_to().

#define TOTAG   ";tag="

Definition at line 51 of file t_msgbuilder.h.

Referenced by acc_log_init(), and print_to().

#define TOTAG_LEN   (sizeof(TOTAG)-1)

Definition at line 52 of file t_msgbuilder.h.

Referenced by build_uac_req(), and print_to().


Function Documentation

char* build_dlg_ack ( struct sip_msg rpl,
struct cell Trans,
unsigned int  branch,
str to,
unsigned int *  len 
)

char* build_local ( struct cell Trans,
unsigned int  branch,
unsigned int *  len,
char *  method,
int  method_len,
str to 
)

char* build_uac_cancel ( str headers,
str body,
struct cell Trans,
unsigned int  branch,
unsigned int *  len 
)

char* build_uac_req ( str method,
str headers,
str body,
dlg_t dialog,
int  branch,
struct cell t,
int *  len 
)

char* build_uac_request ( str  msg_type,
str  dst,
str  from,
str  fromtag,
int  cseq,
str  callid,
str  headers,
str  body,
int  branch,
struct cell t,
unsigned int *  len 
)

void check_hdrs_changes ( struct sip_msg msg  ) 

char* print_callid_mini ( char *  target,
str  callid 
)

Definition at line 843 of file t_msgbuilder.c.

References append_str, CALLID, CALLID_LEN, CRLF, CRLF_LEN, _str::len, and _str::s.

Referenced by print_callid(), and t_lookup_callid().

char* print_cseq_mini ( char *  target,
str cseq,
str method 
)

Definition at line 820 of file t_msgbuilder.c.

References append_str, CSEQ, CSEQ_LEN, _str::len, and _str::s.

Referenced by print_cseq(), and t_lookup_callid().

int t_calc_branch ( struct cell t,
int  b,
char *  branch,
int *  branch_len 
)


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