summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-11-16 11:21:55 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-11-16 11:21:55 -0600
commitf0aa4607125f8d0f35cee5866f1cf04220237ace (patch)
treee45b975ec07b324f2037c6b7896ca72e6edbd9d7 /include
parent595735200c167a1ce9373b1147979fabffd642d2 (diff)
parentb4ef4636858fbee349cb17a3cbd56f349ad90c88 (diff)
Merge "pjsip / hep: Provide correct local address for Websockets." into 15
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/http_websocket.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/http_websocket.h b/include/asterisk/http_websocket.h
index cd49dbe48..2180ef46b 100644
--- a/include/asterisk/http_websocket.h
+++ b/include/asterisk/http_websocket.h
@@ -345,6 +345,15 @@ AST_OPTIONAL_API(int, ast_websocket_fd, (struct ast_websocket *session), { errno
AST_OPTIONAL_API(struct ast_sockaddr *, ast_websocket_remote_address, (struct ast_websocket *session), {return NULL;});
/*!
+ * \brief Get the local address for a WebSocket connection session.
+ *
+ * \retval ast_sockaddr Local address
+ *
+ * \since 13.19.0
+ */
+AST_OPTIONAL_API(struct ast_sockaddr *, ast_websocket_local_address, (struct ast_websocket *session), {return NULL;});
+
+/*!
* \brief Get whether the WebSocket session is using a secure transport or not.
*
* \retval 0 if unsecure