res_pjsip_pubsub.c: Use pjsip version for pending NOTIFY check. (#77)

The functionality we are interested in is present only in pjsip 2.13
and newer.

Resolves: #45
This commit is contained in:
Sean Bright
2023-05-11 16:25:08 -04:00
committed by GitHub
parent 8abb294063
commit 2d18fb6e9d
5 changed files with 5 additions and 50 deletions

View File

@@ -3890,6 +3890,11 @@ static void clean_sub_tree(pjsip_evsub *evsub){
ao2_ref(sub_tree, -1);
}
/* This functionality appeared in pjsip 2.13 */
#if PJ_VERSION_NUM >= 0x020D0000
# define HAVE_PJSIP_EVSUB_PENDING_NOTIFY 1
#endif
/*!
* \brief PJSIP callback when underlying SIP subscription changes state
*