Ignore:
Timestamp:
Mar 19, 2013 7:39:25 AM (11 years ago)
Author:
nanang
Message:

Close #1645: Added run-time setting 'pjsip_cfg()->req_has_via_alias' and compile-time setting 'PJSIP_REQ_HAS_VIA_ALIAS', the default value is PJ_TRUE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r4441 r4442  
    121121        pj_bool_t follow_early_media_fork; 
    122122 
     123        /** 
     124         * Specify whether "alias" param should be added to the Via header 
     125         * in any outgoing request with connection oriented transport. 
     126         * 
     127         * Default is PJSIP_REQ_HAS_VIA_ALIAS. 
     128         */ 
     129        pj_bool_t req_has_via_alias; 
     130 
    123131    } endpt; 
    124132 
     
    317325 
    318326/** 
     327 * Specify whether "alias" param should be added to the Via header 
     328 * in any outgoing request with connection oriented transport. 
     329 * 
     330 * This option can also be controlled at run-time by the 
     331 * \a req_has_via_alias setting in pjsip_cfg_t. 
     332 * 
     333 * Default is PJ_TRUE. 
     334 */ 
     335#ifndef PJSIP_REQ_HAS_VIA_ALIAS 
     336#   define PJSIP_REQ_HAS_VIA_ALIAS                  PJ_TRUE 
     337#endif 
     338 
     339 
     340/** 
    319341 * Accept call replace in early state when invite is not initiated 
    320342 * by the user agent. RFC 3891 Section 3 disallows this, however, 
Note: See TracChangeset for help on using the changeset viewer.