diff options
author | Joshua Colp <jcolp@digium.com> | 2015-05-07 15:10:23 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-05-07 15:10:23 -0500 |
commit | 1e44d1bef990a93f0495f73f6a619e38b9b6fce5 (patch) | |
tree | 5e0ad3a4c23dba32dfdfed9cc37de59fba527f33 /include | |
parent | 608f0a94eeb7bcee3947742c58d2d6218d3e10bb (diff) | |
parent | d649d682c4d28c1f22b8c106d25d0ad982caeebb (diff) |
Merge "res_pjsip_exten_state: Fix race condition between sending NOTIFY and termination" into 13
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_pjsip_pubsub.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip_pubsub.h b/include/asterisk/res_pjsip_pubsub.h index d32b246af..afa0d6930 100644 --- a/include/asterisk/res_pjsip_pubsub.h +++ b/include/asterisk/res_pjsip_pubsub.h @@ -406,6 +406,16 @@ void ast_sip_subscription_get_remote_uri(struct ast_sip_subscription *sub, char const char *ast_sip_subscription_get_resource_name(struct ast_sip_subscription *sub); /*! + * \brief Get whether the subscription has been terminated or not. + * + * \param sub The subscription. + * \retval 0 not terminated. + * \retval 1 terminated. + * \since 13.4.0 + */ +int ast_sip_subscription_is_terminated(const struct ast_sip_subscription *sub); + +/*! * \brief Get a header value for a subscription. * * For notifiers, the headers of the inbound SUBSCRIBE that started the dialog |