Ignore:
Timestamp:
Oct 31, 2007 1:28:08 PM (17 years ago)
Author:
bennylp
Message:

Ticket #407: keep-alive for UDP transports in PJSUA-LIB

File:
1 edited

Legend:

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

    r1535 r1536  
    17691769 */ 
    17701770#ifndef PJSUA_REG_INTERVAL 
    1771 #   define PJSUA_REG_INTERVAL       55 
     1771#   define PJSUA_REG_INTERVAL       300 
    17721772#endif 
    17731773 
     
    18981898    /**  
    18991899     * Optional interval for registration, in seconds. If the value is zero,  
    1900      * default interval will be used (PJSUA_REG_INTERVAL, 55 seconds). 
     1900     * default interval will be used (PJSUA_REG_INTERVAL, 300 seconds). 
    19011901     */ 
    19021902    unsigned        reg_timeout; 
     
    19481948    pj_bool_t auto_update_nat; 
    19491949 
     1950    /** 
     1951     * Set the interval for periodic keep-alive transmission for this account. 
     1952     * If this value is zero, keep-alive will be disabled for this account. 
     1953     * The keep-alive transmission will be sent to the registrar's address, 
     1954     * after successful registration. 
     1955     * 
     1956     * Even if this setting is enabled, keep-alive transmission is only done 
     1957     * when STUN is enabled in the global #pjsua_config, and the transport 
     1958     * used for registration is UDP. For TCP and TLS transports, keep-alive 
     1959     * is done by the transport themselves. 
     1960     * 
     1961     * Default: 15 (seconds) 
     1962     */ 
     1963    unsigned         ka_interval; 
     1964 
     1965    /** 
     1966     * Specify the data to be transmitted as keep-alive packets. 
     1967     * 
     1968     * Default: CR-LF 
     1969     */ 
     1970    pj_str_t         ka_data; 
     1971 
    19501972} pjsua_acc_config; 
    19511973 
     
    19641986 */ 
    19651987PJ_DECL(void) pjsua_acc_config_default(pjsua_acc_config *cfg); 
     1988 
     1989 
     1990/** 
     1991 * Duplicate account config. 
     1992 * 
     1993 * @param pool      Pool to be used for duplicating the config. 
     1994 * @param dst       Destination configuration. 
     1995 * @param src       Source configuration. 
     1996 */ 
     1997PJ_DECL(void) pjsua_acc_config_dup(pj_pool_t *pool, 
     1998                                   pjsua_acc_config *dst, 
     1999                                   const pjsua_acc_config *src); 
    19662000 
    19672001 
Note: See TracChangeset for help on using the changeset viewer.