qos_handlers.h File Reference

#include "../../sr_module.h"
#include "../../parser/msg_parser.h"
#include "../dialog/dlg_load.h"

Include dependency graph for qos_handlers.h:

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

Go to the source code of this file.

Functions

void qos_dialog_created_CB (struct dlg_cell *did, int type, struct dlg_cb_params *params)


Function Documentation

void qos_dialog_created_CB ( struct dlg_cell did,
int  type,
struct dlg_cb_params params 
)

The static (opening) callback function for all dialog creations

Every time a new dialog is created (from a new INVITE) the dialog module will call this callback function. We need to track the dialogs lifespan from this point forward until it is terminated with a BYE, CANCEL, etc. In the process, we will see if either or both ends of the conversation are trying to re-negotiate the media.

This function will setup the other types of dialog callbacks required to track the lifespan of the dialog.

Parameters:
did - The dialog ID
type - The trigger event type (CREATED)
msg - The SIP message that triggered the callback (INVITE)
param - The pointer to nothing. As we did not attach anything to this callback in the dialog module.

Definition at line 113 of file qos_handlers.c.

References add_sdp(), build_new_qos_ctx(), dlg_cb_params::direction, DLG_DIR_DOWNSTREAM, DLG_DIR_UPSTREAM, FAKED_REPLY, sip_msg::first_line, LM_DBG, LM_ERR, LM_WARN, qos_ctx_st::lock, METHOD_INVITE, dlg_cb_params::msg, NULL, QOS_CALLEE, QOS_CALLER, msg_start::request, run_create_cbs(), setup_dialog_callbacks(), SIP_REQUEST, msg_start::type, and msg_start::u.

Referenced by mod_init().


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