From f62192152803bfbe622baf2fa247bd346fdd7905 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 20 Nov 2009 23:33:07 +0000 Subject: More ticket #982 (MWI): support for Asterisk unsolicited MWI requests: - undo r3019 which put unsolicited MWI support in pjsua app only - put the unsolicited MWI support in PJSUA-LIB instead - unsolicited MWI is by default enabled - on_mwi_info() callback will be called just as the solicited MWI version git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3021 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'pjsip/include/pjsua-lib/pjsua.h') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index a8bb2f39..44ce9f0f 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -1001,6 +1001,21 @@ typedef struct pjsua_config */ pj_bool_t require_timer; + /** + * Handle unsolicited NOTIFY requests containing message waiting + * indication (MWI) info. Unsolicited MWI is incoming NOTIFY requests + * which are not requested by client with SUBSCRIBE request. + * + * If this is enabled, the library will respond 200/OK to the NOTIFY + * request and forward the request to \a on_mwi_info() callback. + * + * See also \a mwi_enabled field #on pjsua_acc_config. + * + * Default: PJ_TRUE + * + */ + pj_bool_t enable_unsolicited_mwi; + /** * Specify Session Timer settings, see #pjsip_timer_setting. * Note that this setting can be further customized in account @@ -1882,8 +1897,9 @@ typedef struct pjsua_acc_config pj_str_t reg_uri; /** - * Enable message summary and message waiting indication subscription - * (RFC 3842) for this account. + * Subscribe to message waiting indication events (RFC 3842). + * + * See also \a enable_unsolicited_mwi field on #pjsua_config. * * Default: no */ -- cgit v1.2.3