Merge "pjsip / hep: Provide correct local address for Websockets." into 13

This commit is contained in:
Jenkins2
2017-11-16 10:57:28 -06:00
committed by Gerrit Code Review
4 changed files with 98 additions and 63 deletions

View File

@@ -343,6 +343,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.
*