Ignore:
Timestamp:
Jun 22, 2010 6:02:13 AM (14 years ago)
Author:
bennylp
Message:

Fixed #1095 (New option to control the Route headers in REGISTER request). Details:

  • added new account config setting: reg_use_proxy. This contains bitmask values to indicate whether outbound proxies and account proxies are to be added in the REGISTER request. Default value is to add both.
  • added new pjsua cmdline option to control this: --reg-use-proxy
  • miscellaneous minor fixes in other pjsua cmdline arguments
File:
1 edited

Legend:

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

    r3213 r3216  
    19251925 
    19261926/** 
     1927 * Bit value used in pjsua_acc_config.reg_use_proxy field to indicate that 
     1928 * the global outbound proxy list should be added to the REGISTER request. 
     1929 */ 
     1930#define PJSUA_REG_USE_OUTBOUND_PROXY            1 
     1931 
     1932 
     1933/** 
     1934 * Bit value used in pjsua_acc_config.reg_use_proxy field to indicate that 
     1935 * the account proxy list should be added to the REGISTER request. 
     1936 */ 
     1937#define PJSUA_REG_USE_ACC_PROXY                 2 
     1938 
     1939 
     1940/** 
    19271941 * This structure describes account configuration to be specified when 
    19281942 * adding a new account with #pjsua_acc_add(). Application MUST initialize 
     
    22242238     */ 
    22252239    pj_bool_t        drop_calls_on_reg_fail; 
     2240 
     2241    /** 
     2242     * Specify how the registration uses the outbound and account proxy 
     2243     * settings. This controls if and what Route headers will appear in 
     2244     * the REGISTER request of this account. The value is bitmask combination 
     2245     * of PJSUA_REG_USE_OUTBOUND_PROXY and PJSUA_REG_USE_ACC_PROXY bits. 
     2246     * If the value is set to 0, the REGISTER request will not use any proxy 
     2247     * (i.e. it will not have any Route headers). 
     2248     * 
     2249     * Default: 3 (PJSUA_REG_USE_OUTBOUND_PROXY | PJSUA_REG_USE_ACC_PROXY) 
     2250     */ 
     2251    unsigned         reg_use_proxy; 
    22262252 
    22272253} pjsua_acc_config; 
Note: See TracChangeset for help on using the changeset viewer.