summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorRiza Sulistyo <riza@teluu.com>2014-03-25 04:08:44 +0000
committerRiza Sulistyo <riza@teluu.com>2014-03-25 04:08:44 +0000
commitbbedb19ff73ee8aed26ebcd2a852ee8f82d1c497 (patch)
tree4bf08f3b5ce15f63a0b3926c388ff64525bd6cb5 /pjsip/include
parenta0208cda15419a29925b3947f6f1e09ff8cb7f1a (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.h20
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