cpl_run.h File Reference

#include "../../str.h"
#include "../../parser/msg_parser.h"

Include dependency graph for cpl_run.h:

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

Go to the source code of this file.

Data Structures

struct  cpl_interpreter
struct  cpl_interpreter::proxy_st

Defines

#define CPL_ACCEPTLANG_DUPLICATED   (1<<16)
#define CPL_FORCE_STATEFUL   (1<<3)
#define CPL_FROM_DUPLICATED   (1<<12)
#define CPL_IS_STATEFUL   (1<<2)
#define CPL_LOC_SET_MODIFIED   (1<<5)
#define CPL_ORGANIZATION_DUPLICATED   (1<<14)
#define CPL_PRIORITY_DUPLICATED   (1<<17)
#define CPL_PROXY_DONE   (1<<6)
#define CPL_RUN_INCOMING   (1<<1)
#define CPL_RUN_OUTGOING   (1<<0)
#define CPL_RURI_DUPLICATED   (1<<10)
#define CPL_SUBJECT_DUPLICATED   (1<<13)
#define CPL_TO_DUPLICATED   (1<<11)
#define CPL_USERAGENT_DUPLICATED   (1<<15)
#define SCRIPT_DEFAULT   1
#define SCRIPT_END   0
#define SCRIPT_FORMAT_ERROR   -2
#define SCRIPT_RUN_ERROR   -1
#define SCRIPT_TO_BE_CONTINUED   2
#define STR_NOT_FOUND   ((str*)0xffffffff)

Functions

int cpl_run_script (struct cpl_interpreter *cpl_intr)
void free_cpl_interpreter (struct cpl_interpreter *intr)
struct cpl_interpreternew_cpl_interpreter (struct sip_msg *msg, str *script)


Define Documentation

#define CPL_ACCEPTLANG_DUPLICATED   (1<<16)

Definition at line 47 of file cpl_run.h.

Referenced by free_cpl_interpreter(), and run_proxy().

#define CPL_FORCE_STATEFUL   (1<<3)

Definition at line 38 of file cpl_run.h.

Referenced by fixup_cpl_run_script(), run_redirect(), and run_reject().

#define CPL_FROM_DUPLICATED   (1<<12)

Definition at line 43 of file cpl_run.h.

Referenced by free_cpl_interpreter(), and run_proxy().

#define CPL_IS_STATEFUL   (1<<2)

Definition at line 37 of file cpl_run.h.

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

#define CPL_LOC_SET_MODIFIED   (1<<5)

Definition at line 39 of file cpl_run.h.

Referenced by run_default(), run_location(), run_lookup(), and run_remove_location().

#define CPL_ORGANIZATION_DUPLICATED   (1<<14)

Definition at line 45 of file cpl_run.h.

Referenced by free_cpl_interpreter(), and run_proxy().

#define CPL_PRIORITY_DUPLICATED   (1<<17)

Definition at line 48 of file cpl_run.h.

Referenced by free_cpl_interpreter(), and run_proxy().

#define CPL_PROXY_DONE   (1<<6)

Definition at line 40 of file cpl_run.h.

Referenced by cpl_proxy_to_loc_set(), reply_callback(), run_default(), and run_proxy().

#define CPL_RUN_INCOMING   (1<<1)

Definition at line 36 of file cpl_run.h.

Referenced by cpl_invoke_script(), fixup_cpl_run_script(), and run_cpl_node().

#define CPL_RUN_OUTGOING   (1<<0)

Definition at line 35 of file cpl_run.h.

Referenced by cpl_invoke_script(), and fixup_cpl_run_script().

#define CPL_RURI_DUPLICATED   (1<<10)

Definition at line 41 of file cpl_run.h.

Referenced by free_cpl_interpreter(), and run_proxy().

#define CPL_SUBJECT_DUPLICATED   (1<<13)

Definition at line 44 of file cpl_run.h.

Referenced by free_cpl_interpreter(), and run_proxy().

#define CPL_TO_DUPLICATED   (1<<11)

Definition at line 42 of file cpl_run.h.

Referenced by free_cpl_interpreter(), and run_proxy().

#define CPL_USERAGENT_DUPLICATED   (1<<15)

Definition at line 46 of file cpl_run.h.

Referenced by free_cpl_interpreter(), and run_proxy().

#define SCRIPT_DEFAULT   1

Definition at line 30 of file cpl_run.h.

Referenced by cpl_invoke_script(), and run_default().

#define SCRIPT_END   0

Definition at line 29 of file cpl_run.h.

Referenced by cpl_invoke_script(), cpl_run_script(), reply_callback(), and run_default().

#define SCRIPT_FORMAT_ERROR   -2

Definition at line 33 of file cpl_run.h.

Referenced by cpl_invoke_script(), cpl_run_script(), and reply_callback().

#define SCRIPT_RUN_ERROR   -1

Definition at line 32 of file cpl_run.h.

Referenced by cpl_invoke_script(), cpl_run_script(), reply_callback(), and run_default().

#define SCRIPT_TO_BE_CONTINUED   2

Definition at line 31 of file cpl_run.h.

Referenced by cpl_invoke_script(), cpl_run_script(), and reply_callback().

#define STR_NOT_FOUND   ((str*)0xffffffff)

Definition at line 50 of file cpl_run.h.

Referenced by run_language_switch(), run_proxy(), and run_string_switch().


Function Documentation

int cpl_run_script ( struct cpl_interpreter cpl_intr  ) 

void free_cpl_interpreter ( struct cpl_interpreter intr  ) 

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


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