mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
res_pjsip_session: Added new function calls to avoid ABI issues.
Added two new functions (ast_sip_session_get_dialog and ast_sip_session_get_pjsip_inv_state) that retrieve the dialog and the pjsip_inv_state respectively from the pjsip_inv_session on the ast_sip_session struct. This is due to pjproject adding a new field to the pjsip_inv_session struct that caused crashes when trying to access fields that were no longer where they were expected to be if a module was compiled against a different version of pjproject. Resolves: #145
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
292834d1ba
commit
61f37faf6d
@@ -798,6 +798,26 @@ void ast_sip_session_send_request_with_cb(struct ast_sip_session *session, pjsip
|
||||
*/
|
||||
struct ast_sip_session *ast_sip_dialog_get_session(pjsip_dialog *dlg);
|
||||
|
||||
/*!
|
||||
* \brief Retrieves a dialog from a session
|
||||
*
|
||||
* \param session The session to retrieve the dialog from
|
||||
*
|
||||
* \retval non-NULL if dialog exists
|
||||
* \retval NULL if no dialog
|
||||
*/
|
||||
pjsip_dialog *ast_sip_session_get_dialog(const struct ast_sip_session *session);
|
||||
|
||||
/*!
|
||||
* \brief Retrieves the pjsip_inv_state from a session
|
||||
*
|
||||
* \param session The session to retrieve the state from
|
||||
*
|
||||
* \retval state if inv_session exists
|
||||
* \retval PJSIP_INV_STATE_NULL if inv_session is NULL
|
||||
*/
|
||||
pjsip_inv_state ast_sip_session_get_pjsip_inv_state(const struct ast_sip_session *session);
|
||||
|
||||
/*!
|
||||
* \brief Resumes processing of a deferred incoming re-invite
|
||||
*
|
||||
|
Reference in New Issue
Block a user