]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Added new function calls to avoid ABI issues.
authorBen Ford <bford@digium.com>
Mon, 5 Jun 2023 19:13:16 +0000 (14:13 -0500)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Tue, 13 Jun 2023 17:57:32 +0000 (17:57 +0000)
commit8c76507b9f388856b12d6445c356fce3a3e1248d
treea7a1643d269a816a1cc5cab941c78cce26304b17
parent7dfc190e23664396a097adb1074450cb17c1e138
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
include/asterisk/res_pjsip_session.h
res/res_pjsip_session.c