diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-11-16 10:57:28 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-16 10:57:28 -0600 |
commit | 9fb2da7963f9e02f8502db104c0e2dc0ddfc870a (patch) | |
tree | 5510d629f0a0ed57e185f800bf18f17dd1efcf8b /include | |
parent | cb74309a51f3332325cf44c67577452d7cd1a5e3 (diff) | |
parent | c2dddb001aa01f6786278bfdb54908ca9b0e3271 (diff) |
Merge "pjsip / hep: Provide correct local address for Websockets." into 13
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 d8e7d063b..83d5d4f78 100644 --- a/include/asterisk/http_websocket.h +++ b/include/asterisk/http_websocket.h @@ -344,6 +344,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 |