Ignore:
Timestamp:
Jun 20, 2010 8:58:26 AM (14 years ago)
Author:
bennylp
Message:

Fixed #1086 (New option to update the Contact URI in a single REGISTER request): added contact_rewrite_method account config to control this. Default is to use the new mechanism, i.e. the single REGISTER method.

File:
1 edited

Legend:

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

    r3212 r3213  
    19011901 
    19021902/** 
     1903 * This macro specifies the default value for \a contact_rewrite_method 
     1904 * field in pjsua_acc_config. I specifies  how Contact update will be 
     1905 * done with the registration, if \a allow_contact_rewrite is enabled in 
     1906 *  the account config. 
     1907 * 
     1908 * If set to 1, the Contact update will be done by sending unregistration 
     1909 * to the currently registered Contact, while simultaneously sending new 
     1910 * registration (with different Call-ID) for the updated Contact. 
     1911 * 
     1912 * If set to 2, the Contact update will be done in a single, current 
     1913 * registration session, by removing the current binding (by setting its 
     1914 * Contact's expires parameter to zero) and adding a new Contact binding, 
     1915 * all done in a single request. 
     1916 * 
     1917 * Value 1 is the legacy behavior. 
     1918 * 
     1919 * Default value: 2 
     1920 */ 
     1921#ifndef PJSUA_CONTACT_REWRITE_METHOD 
     1922#   define PJSUA_CONTACT_REWRITE_METHOD         2 
     1923#endif 
     1924 
     1925 
     1926/** 
    19031927 * This structure describes account configuration to be specified when 
    19041928 * adding a new account with #pjsua_acc_add(). Application MUST initialize 
     
    21072131     * configured.  
    21082132     * 
     2133     * See also contact_rewrite_method field. 
     2134     * 
    21092135     * Default: 1 (yes) 
    21102136     */ 
    21112137    pj_bool_t allow_contact_rewrite; 
     2138 
     2139    /** 
     2140     * Specify how Contact update will be done with the registration, if 
     2141     * \a allow_contact_rewrite is enabled. 
     2142     * 
     2143     * If set to 1, the Contact update will be done by sending unregistration 
     2144     * to the currently registered Contact, while simultaneously sending new 
     2145     * registration (with different Call-ID) for the updated Contact. 
     2146     * 
     2147     * If set to 2, the Contact update will be done in a single, current 
     2148     * registration session, by removing the current binding (by setting its 
     2149     * Contact's expires parameter to zero) and adding a new Contact binding, 
     2150     * all done in a single request. 
     2151     * 
     2152     * Value 1 is the legacy behavior. 
     2153     * 
     2154     * Default value: PJSUA_CONTACT_REWRITE_METHOD (2) 
     2155     */ 
     2156    int              contact_rewrite_method; 
    21122157 
    21132158    /** 
Note: See TracChangeset for help on using the changeset viewer.