qos_ctx_helpers.c File Reference

#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "../../parser/sdp/sdp_cloner.h"
#include "../dialog/dlg_hash.h"
#include "qos_ctx_helpers.h"

Include dependency graph for qos_ctx_helpers.c:

Go to the source code of this file.

Defines

#define ERROR_MATCH   -1
#define N_183_PRACK   3
#define N_200OK_ACK   2
#define N_INVITE_200OK   1
#define N_UNKNOWN   0
#define NEGOTIATED_MATCH   3
#define NO_ACK_REQ_MATCH   4
#define NO_INVITE_REQ_MATCH   0
#define NO_INVITE_RESP_MATCH   1
#define NO_UPDATE_REQ_MATCH   7
#define NO_UPDATE_RESP_MATCH   8
#define PENDING_MATCH   2

Functions

int add_pending_sdp_session (qos_ctx_t *qos_ctx, unsigned int dir, str *cseq_number, str *cseq_method, int cseq_method_id, unsigned int role, unsigned int negotiation, sdp_session_cell_t *session, struct sip_msg *_m)
void add_sdp (qos_ctx_t *qos_ctx, unsigned int dir, struct sip_msg *_m, unsigned int role, unsigned int other_role)
qos_ctx_tbuild_new_qos_ctx (void)
void destroy_qos (qos_sdp_t *qos_sdp)
void destroy_qos_ctx (qos_ctx_t *qos_ctx)
int find_qos_sdp (qos_ctx_t *qos_ctx, unsigned int dir, unsigned int other_role, str *cseq_number, int cseq_method_id, sdp_session_cell_t *session, struct sip_msg *_m, qos_sdp_t **_qos_sdp)
void link_negotiated_qos_sdp_and_run_cb (qos_ctx_t *qos_ctx, qos_sdp_t *qos_sdp, unsigned int role, struct sip_msg *_m)
void link_pending_qos_sdp (qos_ctx_t *qos_ctx, qos_sdp_t *qos_sdp)
void print_qos_sdp (qos_sdp_t *qos_sdp)
void remove_sdp (qos_ctx_t *qos_ctx, unsigned int dir, struct sip_msg *_m, unsigned int role, unsigned int other_role)
void unlink_negotiated_qos_sdp (qos_ctx_t *qos_ctx, qos_sdp_t *qos_sdp)
void unlink_pending_qos_sdp (qos_ctx_t *qos_ctx, qos_sdp_t *qos_sdp)


Define Documentation

#define ERROR_MATCH   -1

Definition at line 34 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().

#define N_183_PRACK   3

Definition at line 51 of file qos_ctx_helpers.c.

#define N_200OK_ACK   2

Definition at line 48 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().

#define N_INVITE_200OK   1

Definition at line 46 of file qos_ctx_helpers.c.

Referenced by add_sdp(), find_qos_sdp(), and remove_sdp().

#define N_UNKNOWN   0

Definition at line 44 of file qos_ctx_helpers.c.

#define NEGOTIATED_MATCH   3

Definition at line 38 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().

#define NO_ACK_REQ_MATCH   4

Definition at line 39 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().

#define NO_INVITE_REQ_MATCH   0

Definition at line 35 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().

#define NO_INVITE_RESP_MATCH   1

Definition at line 36 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().

#define NO_UPDATE_REQ_MATCH   7

Definition at line 40 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().

#define NO_UPDATE_RESP_MATCH   8

Definition at line 41 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().

#define PENDING_MATCH   2

Definition at line 37 of file qos_ctx_helpers.c.

Referenced by add_sdp(), and find_qos_sdp().


Function Documentation

int add_pending_sdp_session ( qos_ctx_t qos_ctx,
unsigned int  dir,
str cseq_number,
str cseq_method,
int  cseq_method_id,
unsigned int  role,
unsigned int  negotiation,
sdp_session_cell_t *  session,
struct sip_msg _m 
)

void add_sdp ( qos_ctx_t qos_ctx,
unsigned int  dir,
struct sip_msg _m,
unsigned int  role,
unsigned int  other_role 
)

qos_ctx_t* build_new_qos_ctx ( void   ) 

Definition at line 53 of file qos_ctx_helpers.c.

References LM_ERR, qos_ctx_st::lock, NULL, shm_free, and shm_malloc().

Referenced by qos_dialog_created_CB().

void destroy_qos ( qos_sdp_t qos_sdp  ) 

void destroy_qos_ctx ( qos_ctx_t qos_ctx  ) 

int find_qos_sdp ( qos_ctx_t qos_ctx,
unsigned int  dir,
unsigned int  other_role,
str cseq_number,
int  cseq_method_id,
sdp_session_cell_t *  session,
struct sip_msg _m,
qos_sdp_t **  _qos_sdp 
)

void link_negotiated_qos_sdp_and_run_cb ( qos_ctx_t qos_ctx,
qos_sdp_t qos_sdp,
unsigned int  role,
struct sip_msg _m 
)

void link_pending_qos_sdp ( qos_ctx_t qos_ctx,
qos_sdp_t qos_sdp 
)

void print_qos_sdp ( qos_sdp_t qos_sdp  ) 

void remove_sdp ( qos_ctx_t qos_ctx,
unsigned int  dir,
struct sip_msg _m,
unsigned int  role,
unsigned int  other_role 
)

void unlink_negotiated_qos_sdp ( qos_ctx_t qos_ctx,
qos_sdp_t qos_sdp 
)

void unlink_pending_qos_sdp ( qos_ctx_t qos_ctx,
qos_sdp_t qos_sdp 
)

Definition at line 270 of file qos_ctx_helpers.c.

References qos_sdp_st::next, NULL, qos_ctx_st::pending_sdp, and qos_sdp_st::prev.

Referenced by add_sdp().


Generated on Thu May 24 08:01:16 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6