summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2012-06-19 14:35:18 +0000
committerNanang Izzuddin <nanang@teluu.com>2012-06-19 14:35:18 +0000
commit253bf3c598087e7d4b11d0c0cb3940551becfcdc (patch)
tree34f5715a8756dee38c175264d58bd618c38bc4c1 /pjsip/include/pjsua-lib
parent4e48275b5dc67bce49f48c1f683dd3a8f3def8d5 (diff)
Close #1540:
- added pjsua_acc_config.mwi_expires, also compile-time macro PJSIP_MWI_DEFAULT_EXPIRES - updated pjsua_acc_modify() to update MWI subscription when mwi_expires & mwi_enabled of pjsua_acc_config is modified git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4172 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h8
-rw-r--r--pjsip/include/pjsua-lib/pjsua_internal.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 8723c2bc..8bf935aa 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -2615,6 +2615,14 @@ typedef struct pjsua_acc_config
pj_bool_t mwi_enabled;
/**
+ * Specify the default expiration time for Message Waiting Indication
+ * (RFC 3842) event subscription. This must not be zero.
+ *
+ * Default: PJSIP_MWI_DEFAULT_EXPIRES
+ */
+ unsigned mwi_expires;
+
+ /**
* If this flag is set, the presence information of this account will
* be PUBLISH-ed to the server where the account belongs.
*
diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h
index 4b2dc947..911cad10 100644
--- a/pjsip/include/pjsua-lib/pjsua_internal.h
+++ b/pjsip/include/pjsua-lib/pjsua_internal.h
@@ -670,7 +670,7 @@ pj_status_t pjsua_im_init(void);
/**
* Start MWI subscription
*/
-void pjsua_start_mwi(pjsua_acc *acc);
+pj_status_t pjsua_start_mwi(pjsua_acc_id acc_id, pj_bool_t force_renew);
/**
* Init call subsystem.