]> 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)
committerBen Ford <bford@digium.com>
Tue, 13 Jun 2023 17:59:00 +0000 (17:59 +0000)
commitad120e5d0be6acfc2ce1827b9e5dd82a0d0e8dd3
tree1ca515810646ff27695be42dec8bf37c1ca64c2d
parent6084bbfe0e91718cf58accdb8978e56c2ec81600
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