diff options
author | Riza Sulistyo <riza@teluu.com> | 2014-03-25 04:08:44 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2014-03-25 04:08:44 +0000 |
commit | bbedb19ff73ee8aed26ebcd2a852ee8f82d1c497 (patch) | |
tree | 4bf08f3b5ce15f63a0b3926c388ff64525bd6cb5 /pjsip/include | |
parent | a0208cda15419a29925b3947f6f1e09ff8cb7f1a (diff) |
Re #1752: Add option to resolve hostname when trying to get network interface.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4802 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_config.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index fc7604cb..27575c8c 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -137,6 +137,14 @@ typedef struct pjsip_cfg_t */ pj_bool_t req_has_via_alias; + /** + * Resolve hostname when trying to get the network interface to be put + * in Via or Contact header. + * + * Default is PJSIP_RESOLVE_HOSTNAME_TO_GET_INTERFACE. + */ + pj_bool_t resolve_hostname_to_get_interface; + } endpt; /** Transaction layer settings. */ @@ -363,6 +371,18 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void) # define PJSIP_REQ_HAS_VIA_ALIAS PJ_TRUE #endif +/** + * Resolve hostname when trying to get the network interface to be put in Via + * or Contact header. + * + * This option can also be controlled at run-time by the + * \a resolve_hostname_to_get_interface setting in pjsip_cfg_t. + * + * Default is PJ_FALSE. + */ +#ifndef PJSIP_RESOLVE_HOSTNAME_TO_GET_INTERFACE +# define PJSIP_RESOLVE_HOSTNAME_TO_GET_INTERFACE PJ_FALSE +#endif /** * Accept call replace in early state when invite is not initiated |