diff options
author | Joshua Colp <jcolp@digium.com> | 2017-11-16 11:53:53 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-16 11:53:53 -0600 |
commit | a5918d300b85d5513e4f4272d69e7e9eda511824 (patch) | |
tree | a315148b6b6c086a28708880b74f3131182a0c37 /include | |
parent | d89dc864eb72a275a9c51a4e8e42c322d81b0764 (diff) | |
parent | 29e0add14f8db9ea28a7fbb32c2efec8c9738196 (diff) |
Merge "pjsip / hep: Provide correct local address for Websockets."
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/http_websocket.h | 9 |
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 |