diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2013-03-19 07:39:25 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2013-03-19 07:39:25 +0000 |
commit | 7a36d0beac6c5e1253076a2b42d778fd389695e6 (patch) | |
tree | 79143a2ec1d21dae224bc77e30b94b7cc63bb443 /pjsip/include | |
parent | ba8d46d99f2952ac2831790179ec54b44b2138d2 (diff) |
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.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4442 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_config.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index b72c6d02..bc895c59 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -120,6 +120,14 @@ typedef struct pjsip_cfg_t */ pj_bool_t follow_early_media_fork; + /** + * Specify whether "alias" param should be added to the Via header + * in any outgoing request with connection oriented transport. + * + * Default is PJSIP_REQ_HAS_VIA_ALIAS. + */ + pj_bool_t req_has_via_alias; + } endpt; /** Transaction layer settings. */ @@ -316,6 +324,20 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void) /** + * Specify whether "alias" param should be added to the Via header + * in any outgoing request with connection oriented transport. + * + * This option can also be controlled at run-time by the + * \a req_has_via_alias setting in pjsip_cfg_t. + * + * Default is PJ_TRUE. + */ +#ifndef PJSIP_REQ_HAS_VIA_ALIAS +# define PJSIP_REQ_HAS_VIA_ALIAS PJ_TRUE +#endif + + +/** * Accept call replace in early state when invite is not initiated * by the user agent. RFC 3891 Section 3 disallows this, however, * for better interoperability reason, this might be ignored. |