mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 03:45:27 +00:00
Merge topic 'ASTERISK-24863'
* changes: res_pjsip: Add global option to limit the maximum time for initial qualifies pjsip_options: Add qualify_timeout processing and eventing res_pjsip: Refactor endpt_send_request to include transaction timeout
This commit is contained in:
@@ -415,6 +415,14 @@ const char *ast_endpoint_get_id(const struct ast_endpoint *endpoint)
|
||||
return endpoint->id;
|
||||
}
|
||||
|
||||
enum ast_endpoint_state ast_endpoint_get_state(const struct ast_endpoint *endpoint)
|
||||
{
|
||||
if (!endpoint) {
|
||||
return AST_ENDPOINT_UNKNOWN;
|
||||
}
|
||||
return endpoint->state;
|
||||
}
|
||||
|
||||
void ast_endpoint_set_state(struct ast_endpoint *endpoint,
|
||||
enum ast_endpoint_state state)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user