summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip/sip_endpoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/include/pjsip/sip_endpoint.h')
-rw-r--r--pjsip/include/pjsip/sip_endpoint.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_endpoint.h b/pjsip/include/pjsip/sip_endpoint.h
index 265b7f23..cb3d90fb 100644
--- a/pjsip/include/pjsip/sip_endpoint.h
+++ b/pjsip/include/pjsip/sip_endpoint.h
@@ -391,6 +391,24 @@ PJ_DECL(pj_status_t) pjsip_endpt_set_resolver(pjsip_endpoint *endpt,
pj_dns_resolver *resv);
/**
+ * Set the DNS external resolver implementation to use in the SIP resolver.
+ *
+ * Note that naturally when implementing its own resolver, application would not
+ * need the internal resolver, hence this function will also destroy the
+ * PJLIB-UTIL DNS resolver if any (e.g: set using #pjsip_endpt_set_resolver()).
+ * Application that needs it, still be able create its own instance.
+ *
+ * @param res The SIP resolver engine.
+ * @param ext_res The external resolver implementation callback. This argument
+ * can be NULL to reset the whole external implementation.
+ * However, it is prohibited to reset individual callback.
+ *
+ * @return PJ_SUCCESS on success, or the appropriate error code.
+ */
+PJ_DECL(pj_status_t) pjsip_endpt_set_ext_resolver(pjsip_endpoint *endpt,
+ pjsip_ext_resolver *ext_res);
+
+/**
* Get the DNS resolver being used by the SIP resolver.
*
* @param endpt The SIP endpoint instance.