Ignore:
Timestamp:
Sep 7, 2010 9:36:15 AM (9 years ago)
Author:
nanang
Message:

Re #1120:

  • Added enum pjsua_sip_timer_use for session timer usage types, containing: inactive, optional, required, always
  • Replaced require_timer (boolean) with above enum in global and account config setting.
  • Updated pjsua app --use-timer option accordingly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r3304 r3305  
    887887 
    888888 
     889/** 
     890 * This enumeration specifies the usage of SIP Session Timers extension. 
     891 */ 
     892typedef enum pjsua_sip_timer_use 
     893{ 
     894    /** 
     895     * When this flag is specified, Session Timers will not be used in any 
     896     * session, except it is explicitly required in the remote request. 
     897     */ 
     898    PJSUA_SIP_TIMER_INACTIVE, 
     899 
     900    /** 
     901     * When this flag is specified, Session Timers will be used in all  
     902     * sessions whenever remote supports and uses it. 
     903     */ 
     904    PJSUA_SIP_TIMER_OPTIONAL, 
     905 
     906    /** 
     907     * When this flag is specified, Session Timers support will be  
     908     * a requirement for the remote to be able to establish a session. 
     909     */ 
     910    PJSUA_SIP_TIMER_REQUIRED, 
     911 
     912    /** 
     913     * When this flag is specified, Session Timers will always be used 
     914     * in all sessions, regardless whether remote supports/uses it or not. 
     915     */ 
     916    PJSUA_SIP_TIMER_ALWAYS 
     917 
     918} pjsua_sip_timer_use; 
    889919 
    890920 
     
    10341064 
    10351065    /** 
    1036      * Specify whether support for Session Timers should be required by  
    1037      * default. Note that this setting can be further customized in account 
    1038      * configuration (#pjsua_acc_config). 
    1039      * 
    1040      * Default: PJ_FALSE 
    1041      */ 
    1042     pj_bool_t       require_timer; 
     1066     * Specify the usage of Session Timers for all sessions. See the 
     1067     * #pjsua_sip_timer_use for possible values. Note that this setting can be 
     1068     * further customized in account configuration (#pjsua_acc_config). 
     1069     * 
     1070     * Default: PJSUA_SIP_TIMER_OPTIONAL 
     1071     */ 
     1072    pjsua_sip_timer_use use_timer; 
    10431073 
    10441074    /** 
     
    20992129 
    21002130    /** 
    2101      * Specify whether support for Session Timers should be required for all  
    2102      * sessions of this account. 
    2103      * 
    2104      * Default: PJ_FALSE 
    2105      */ 
    2106     pj_bool_t       require_timer; 
     2131     * Specify the usage of Session Timers for all sessions. See the 
     2132     * #pjsua_sip_timer_use for possible values. 
     2133     * 
     2134     * Default: PJSUA_SIP_TIMER_OPTIONAL 
     2135     */ 
     2136    pjsua_sip_timer_use use_timer; 
    21072137 
    21082138    /** 
Note: See TracChangeset for help on using the changeset viewer.