cpl_run.c File Reference

#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "../../str.h"
#include "../../ut.h"
#include "../../dprint.h"
#include "../../parser/msg_parser.h"
#include "../../data_lump_rpl.h"
#include "../tm/tm_load.h"
#include "../usrloc/usrloc.h"
#include "CPL_tree.h"
#include "loc_set.h"
#include "cpl_utils.h"
#include "cpl_nonsig.h"
#include "cpl_sig.h"
#include "cpl_env.h"
#include "cpl_run.h"
#include "cpl_switches.h"
#include "cpl_proxy.h"

Include dependency graph for cpl_run.c:

Go to the source code of this file.

Defines

#define check_overflow_by_offset(_len_, _intr_, _error_)
#define check_overflow_by_ptr(_ptr_, _intr_, _error_)
#define CPL_RUNTIME_ERROR   ((char*)0xfffffffc)
#define CPL_SCRIPT_ERROR   ((char*)0xfffffffd)
#define CPL_TO_CONTINUE   ((char*)0xfffffffb)
#define DEFAULT_ACTION   ((char*)0xfffffffe)
#define EO_SCRIPT   ((char*)0xffffffff)
#define get_basic_attr(_p_, _code_, _n_, _intr_, _error_)
#define get_first_child(_node_)   ((NR_OF_KIDS(_node_)==0)?DEFAULT_ACTION:(_node_)+KID_OFFSET(_node_,0))
#define get_str_attr(_p_, _s_, _len_, _intr_, _error_, _FIXUP_)
#define HDR_NOT_FOUND   ((char*)0xffffffff)
#define UNDEF_CHAR   (0xff)

Functions

int cpl_run_script (struct cpl_interpreter *intr)
void free_cpl_interpreter (struct cpl_interpreter *intr)
struct cpl_interpreternew_cpl_interpreter (struct sip_msg *msg, str *script)
static char * run_cpl_node (struct cpl_interpreter *intr)
static int run_default (struct cpl_interpreter *intr)
static char * run_location (struct cpl_interpreter *intr)
static char * run_log (struct cpl_interpreter *intr)
static char * run_lookup (struct cpl_interpreter *intr)
static char * run_mail (struct cpl_interpreter *intr)
static char * run_redirect (struct cpl_interpreter *intr)
static char * run_reject (struct cpl_interpreter *intr)
static char * run_remove_location (struct cpl_interpreter *intr)
static char * run_sub (struct cpl_interpreter *intr)

Variables

static str cpl_301_reason = str_init("Moved permanently")
static str cpl_302_reason = str_init("Moved temporarily")


Define Documentation

#define check_overflow_by_offset ( _len_,
_intr_,
_error_   ) 

Definition at line 77 of file cpl_run.c.

Referenced by cpl_run_script().

#define check_overflow_by_ptr ( _ptr_,
_intr_,
_error_   ) 

#define CPL_RUNTIME_ERROR   ((char*)0xfffffffc)

#define CPL_SCRIPT_ERROR   ((char*)0xfffffffd)

#define CPL_TO_CONTINUE   ((char*)0xfffffffb)

Definition at line 59 of file cpl_run.c.

Referenced by cpl_run_script(), and run_proxy().

#define DEFAULT_ACTION   ((char*)0xfffffffe)

#define EO_SCRIPT   ((char*)0xffffffff)

Definition at line 55 of file cpl_run.c.

Referenced by cpl_run_script(), run_proxy(), run_redirect(), and run_reject().

#define get_basic_attr ( _p_,
_code_,
_n_,
_intr_,
_error_   ) 

#define get_first_child ( _node_   )     ((NR_OF_KIDS(_node_)==0)?DEFAULT_ACTION:(_node_)+KID_OFFSET(_node_,0))

#define get_str_attr ( _p_,
_s_,
_len_,
_intr_,
_error_,
_FIXUP_   ) 

#define HDR_NOT_FOUND   ((char*)0xffffffff)

Definition at line 61 of file cpl_run.c.

#define UNDEF_CHAR   (0xff)

Definition at line 62 of file cpl_run.c.

Referenced by run_address_switch(), run_location(), run_reject(), and run_remove_location().


Function Documentation

int cpl_run_script ( struct cpl_interpreter intr  ) 

void free_cpl_interpreter ( struct cpl_interpreter intr  ) 

struct cpl_interpreter* new_cpl_interpreter ( struct sip_msg msg,
str script 
) [read]

static char* run_cpl_node ( struct cpl_interpreter intr  )  [inline, static]

static int run_default ( struct cpl_interpreter intr  )  [inline, static]

static char* run_location ( struct cpl_interpreter intr  )  [inline, static]

static char* run_log ( struct cpl_interpreter intr  )  [inline, static]

static char* run_lookup ( struct cpl_interpreter intr  )  [inline, static]

static char* run_mail ( struct cpl_interpreter intr  )  [inline, static]

static char* run_redirect ( struct cpl_interpreter intr  )  [inline, static]

static char* run_reject ( struct cpl_interpreter intr  )  [inline, static]

static char* run_remove_location ( struct cpl_interpreter intr  )  [inline, static]

static char* run_sub ( struct cpl_interpreter intr  )  [inline, static]


Variable Documentation

str cpl_301_reason = str_init("Moved permanently") [static]

Definition at line 65 of file cpl_run.c.

str cpl_302_reason = str_init("Moved temporarily") [static]

Definition at line 66 of file cpl_run.c.


Generated on Mon May 21 18:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6