diff options
author | Liong Sauw Ming <ming@teluu.com> | 2012-06-26 09:37:41 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2012-06-26 09:37:41 +0000 |
commit | c6a4be00c6cd11309519adb5c693589f85d68aa4 (patch) | |
tree | ca0243f0813442089d9ebf16e3e8bc66fc1f3f18 /pjsip/include/pjsua-lib | |
parent | 212dca784b98723807900d8a935a67e77d4458d4 (diff) |
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
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -1170,6 +1170,16 @@ typedef struct pjsua_callback 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. * |