Ignore:
Timestamp:
Mar 30, 2010 11:13:59 AM (12 years ago)
Author:
nanang
Message:

Ticket #1044:

  • Added initial version of automatic re-registration after registration failure and automatic call disconnection after re-registration attempt fails.
  • Published auto re-registration setting to pjsua app.
  • Updated pjsip_regc_send() to retrieve the transport earlier (was only in tsx_callback()).
  • Fixed TCP and TLS transport to prevent transport deletion in transport disconnection callback.
  • Fixed wrong keep-alive settings used by TLS transport (was using TCP keep-alive settings).
File:
1 edited

Legend:

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

    r3110 r3128  
    18661866 
    18671867/** 
     1868 * Default auto retry re-registration interval, in seconds. Set to 0 
     1869 * to disable this. Application can set the timer on per account basis  
     1870 * by setting the pjsua_acc_config.reg_retry_interval field instead. 
     1871 * 
     1872 * Default: 300 (5 minutes) 
     1873 */ 
     1874#ifndef PJSUA_REG_RETRY_INTERVAL 
     1875#   define PJSUA_REG_RETRY_INTERVAL     300 
     1876#endif 
     1877 
     1878 
     1879/** 
    18681880 * This structure describes account configuration to be specified when 
    18691881 * adding a new account with #pjsua_acc_add(). Application MUST initialize 
     
    21162128    int              srtp_secure_signaling; 
    21172129#endif 
     2130 
     2131    /** 
     2132     * Specify interval of auto registration retry upon registration failure 
     2133     * (including caused by transport problem), in second. Set to 0 to 
     2134     * disable auto re-registration. 
     2135     * 
     2136     * Default: #PJSUA_REG_RETRY_INTERVAL 
     2137     */ 
     2138    unsigned         reg_retry_interval; 
     2139 
     2140    /** 
     2141     * Specify whether calls of the configured account should be dropped 
     2142     * after registration failure and an attempt of re-registration has  
     2143     * also failed. 
     2144     * 
     2145     * Default: PJ_FALSE (disabled) 
     2146     */ 
     2147    pj_bool_t        drop_calls_on_reg_fail; 
    21182148 
    21192149} pjsua_acc_config; 
Note: See TracChangeset for help on using the changeset viewer.