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


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) |
| 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.
| 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().
1.5.6