dlg_req_within.c File Reference

#include <stdlib.h>
#include <string.h>
#include "../../dprint.h"
#include "../../ut.h"
#include "../../db/db.h"
#include "../../config.h"
#include "../../socket_info.h"
#include "../tm/dlg.h"
#include "../tm/tm_load.h"
#include "../../mi/tree.h"
#include "dlg_timer.h"
#include "dlg_hash.h"
#include "dlg_req_within.h"
#include "dlg_db_handler.h"

Include dependency graph for dlg_req_within.c:

Go to the source code of this file.

Defines

#define MAX_FWD_HDR   "Max-Forwards: " MAX_FWD CRLF
#define MAX_FWD_HDR_LEN   (sizeof(MAX_FWD_HDR) - 1)

Functions

dlg_tbuild_dlg_t (struct dlg_cell *cell, int dir)
static int build_extra_hdr (struct dlg_cell *cell, str *extra_hdrs, str *str_hdr)
void bye_reply_cb (struct cell *t, int type, struct tmcb_params *ps)
int dlg_bye (struct dlg_cell *dlg, str *hdrs, int side)
int dlg_bye_all (struct dlg_cell *dlg, str *hdrs)
int free_tm_dlg (dlg_t *td)
struct mi_rootmi_terminate_dlg (struct mi_root *cmd_tree, void *param)
static int send_bye (struct dlg_cell *cell, int dir, str *hdrs)

Variables

str dlg_extra_hdrs


Define Documentation

#define MAX_FWD_HDR   "Max-Forwards: " MAX_FWD CRLF

Definition at line 46 of file dlg_req_within.c.

Referenced by build_extra_hdr().

#define MAX_FWD_HDR_LEN   (sizeof(MAX_FWD_HDR) - 1)

Definition at line 47 of file dlg_req_within.c.

Referenced by build_extra_hdr().


Function Documentation

dlg_t* build_dlg_t ( struct dlg_cell cell,
int  dir 
)

static int build_extra_hdr ( struct dlg_cell cell,
str extra_hdrs,
str str_hdr 
) [inline, static]

Definition at line 199 of file dlg_req_within.c.

References _str::len, LM_ERR, MAX_FWD_HDR, MAX_FWD_HDR_LEN, pkg_malloc, and _str::s.

Referenced by dlg_bye(), and dlg_bye_all().

void bye_reply_cb ( struct cell t,
int  type,
struct tmcb_params ps 
)

int dlg_bye ( struct dlg_cell dlg,
str hdrs,
int  side 
)

int dlg_bye_all ( struct dlg_cell dlg,
str hdrs 
)

int free_tm_dlg ( dlg_t td  ) 

struct mi_root* mi_terminate_dlg ( struct mi_root cmd_tree,
void *  param 
) [read]

static int send_bye ( struct dlg_cell cell,
int  dir,
str hdrs 
) [inline, static]


Variable Documentation

Definition at line 85 of file dialog.c.


Generated on Tue May 22 16:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6