From c6a4be00c6cd11309519adb5c693589f85d68aa4 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Tue, 26 Jun 2012 09:37:41 +0000 Subject: Re #1540: Modify MWI subscription setting on run-time * Add subscription state callback * Terminate subscription when deleting acc git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4180 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pjsip/include/pjsua-lib') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 553f3dad..f95cd29f 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -1169,6 +1169,16 @@ typedef struct pjsua_callback const pjsip_uri *target, const pjsip_event *e); + /** + * This callback is called when message waiting indication subscription + * state has changed. Application can then query the subscription state + * by calling #pjsip_evsub_get_state(). + * + * @param acc_id The account ID. + * @param evsub The subscription instance. + */ + void (*on_mwi_state)(pjsua_acc_id acc_id, pjsip_evsub *evsub); + /** * This callback is called when a NOTIFY request for message summary / * message waiting indication is received. -- cgit v1.2.3