rr_cb.h File Reference

Route & Record-Route module. More...

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

Include dependency graph for rr_cb.h:

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

Go to the source code of this file.

Data Structures

struct  rr_callback

Typedefs

typedef int(* register_rrcb_t )(rr_cb_t f, void *param)
 register callback function prototype
typedef void( rr_cb_t )(struct sip_msg *req, str *rr_param, void *param)
 callback function prototype

Functions

void destroy_rrcb_lists (void)
 destroy global callback list, frees memory
int register_rrcb (rr_cb_t f, void *param)
 register a RR callback, allocates new private memory for it
void run_rr_callbacks (struct sip_msg *req, str *rr_param)
 run RR transaction callbacks


Detailed Description

Route & Record-Route module.

Definition in file rr_cb.h.


Typedef Documentation

typedef int(* register_rrcb_t)(rr_cb_t f, void *param)

register callback function prototype

Definition at line 39 of file rr_cb.h.

typedef void( rr_cb_t)(struct sip_msg *req, str *rr_param, void *param)

callback function prototype

Definition at line 37 of file rr_cb.h.


Function Documentation

void destroy_rrcb_lists ( void   ) 

destroy global callback list, frees memory

Definition at line 40 of file rr_cb.c.

References rr_callback::next, and pkg_free.

Referenced by mod_destroy().

int register_rrcb ( rr_cb_t  f,
void *  param 
)

register a RR callback, allocates new private memory for it

Parameters:
f callback register function
param callback parameter
Returns:
0 on success, -1 on failure (out of memory)

Definition at line 58 of file rr_cb.c.

References rr_callback::callback, rr_callback::id, LM_ERR, rr_callback::next, rr_callback::param, and pkg_malloc.

Referenced by load_rr().

void run_rr_callbacks ( struct sip_msg req,
str rr_params 
)

run RR transaction callbacks

Parameters:
req SIP request
rr_param callback list

Definition at line 89 of file rr_cb.c.

References rr_callback::callback, rr_callback::id, _str::len, LM_DBG, rr_callback::next, rr_callback::param, and _str::s.

Referenced by after_loose(), and after_strict().


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