summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua2/endpoint.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/include/pjsua2/endpoint.hpp')
-rw-r--r--pjsip/include/pjsua2/endpoint.hpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/pjsip/include/pjsua2/endpoint.hpp b/pjsip/include/pjsua2/endpoint.hpp
index 09149c70..e16da908 100644
--- a/pjsip/include/pjsua2/endpoint.hpp
+++ b/pjsip/include/pjsua2/endpoint.hpp
@@ -904,6 +904,32 @@ public:
pj_stun_nat_type natGetType() throw(Error);
/**
+ * Update the STUN servers list. The libInit() must have been called
+ * before calling this function.
+ *
+ * @param prmServers Array of STUN servers to try. The endpoint
+ * will try to resolve and contact each of the
+ * STUN server entry until it finds one that is
+ * usable. Each entry may be a domain name, host
+ * name, IP address, and it may contain an
+ * optional port number. For example:
+ * - "pjsip.org" (domain name)
+ * - "sip.pjsip.org" (host name)
+ * - "pjsip.org:33478" (domain name and a non-
+ * standard port number)
+ * - "10.0.0.1:3478" (IP address and port number)
+ * @param prmWait Specify if the function should block until
+ * it gets the result. In this case, the
+ * function will block while the resolution
+ * is being done, and the callback
+ * onNatCheckStunServersComplete() will be called
+ * before this function returns.
+ *
+ */
+ void natUpdateStunServers(const StringVector &prmServers,
+ bool prmWait) throw(Error);
+
+ /**
* Auxiliary function to resolve and contact each of the STUN server
* entries (sequentially) to find which is usable. The libInit() must
* have been called before calling this function.
@@ -1189,7 +1215,7 @@ public:
/**
* Callback when the Endpoint has finished performing STUN server
* checking that is initiated when calling libInit(), or by
- * calling natCheckStunServers().
+ * calling natCheckStunServers() or natUpdateStunServers().
*
* @param prm Callback parameters.
*/