Ignore:
Timestamp:
Jun 19, 2012 2:35:18 PM (10 years ago)
Author:
nanang
Message:

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r4094 r4172  
    995995 
    996996 
     997/** 
     998 * Specify the default expiration time for Message Waiting Indication 
     999 * (RFC 3842) event subscription, for both client and server subscription. 
     1000 * For client subscription, application can override this by specifying 
     1001 * positive non-zero value in "expires" parameter when calling 
     1002 * #pjsip_mwi_initiate(). For server subscription, we would take the 
     1003 * expiration value from the Expires header sent by client in the SUBSCRIBE 
     1004 * request if the header exists and its value is less than  this setting, 
     1005 * otherwise this setting will be used. 
     1006 * 
     1007 * Default: 3600 seconds 
     1008 */ 
     1009#ifndef PJSIP_MWI_DEFAULT_EXPIRES 
     1010#   define PJSIP_MWI_DEFAULT_EXPIRES            3600 
     1011#endif 
     1012 
     1013 
    9971014PJ_END_DECL 
    9981015 
Note: See TracChangeset for help on using the changeset viewer.