summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-06-30 15:53:24 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-06-30 15:53:24 -0500
commit040a11cecd55e138c411608c17a2af56a2abcbf2 (patch)
tree1112d834d08ddb201f5f046e3ea29d509727cfae /include
parent5ad7e1c09a7db698f0e4dd95f9153a70f8a1c667 (diff)
parent6fa3ed067957e580e208ead7a62a095ac26f5fa9 (diff)
Merge "res_pjsip: improve realtime performance #2"
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/res_pjsip.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h
index d1f0c9825..f9f9e2037 100644
--- a/include/asterisk/res_pjsip.h
+++ b/include/asterisk/res_pjsip.h
@@ -256,6 +256,8 @@ struct ast_sip_contact {
int via_port;
/*! Content of the Call-ID header in REGISTER request */
AST_STRING_FIELD_EXTENDED(call_id);
+ /*! The name of the endpoint that added the contact */
+ AST_STRING_FIELD_EXTENDED(endpoint_name);
};
#define CONTACT_STATUS "contact_status"
@@ -978,6 +980,16 @@ void ast_sip_unregister_endpoint_identifier(struct ast_sip_endpoint_identifier *
void *ast_sip_endpoint_alloc(const char *name);
/*!
+ * \brief Change state of a persistent endpoint.
+ *
+ * \param endpoint The SIP endpoint name to change state.
+ * \param state The new state
+ * \retval 0 Success
+ * \retval -1 Endpoint not found
+ */
+int ast_sip_persistent_endpoint_update_state(const char *endpoint_name, enum ast_endpoint_state state);
+
+/*!
* \brief Get a pointer to the PJSIP endpoint.
*
* This is useful when modules have specific information they need