res_pjsip: Add AMI events for chan_pjsip contact lifecycle changes

Add a new ContactStatus AMI event.
Publish the following status/state changes:
Created
Removed
Reachable
Unreachable
Unknown

Contact URI, new status/state, aor and endpoint names, and the
last qualify rtt result are included in the event.

ASTERISK-25114 #close

Change-Id: Id25aae5f7122facba183273efb3e8f36c20fb61e
Reported-by: George Joseph <george.joseph@fairview5.com>
Tested-by: George Joseph <george.joseph@fairview5.com>
This commit is contained in:
George Joseph
2015-05-21 16:21:01 -06:00
parent 3a8eb3c476
commit b8ac683822
7 changed files with 173 additions and 34 deletions

View File

@@ -178,7 +178,9 @@ struct ast_sip_contact {
enum ast_sip_contact_status_type {
UNAVAILABLE,
AVAILABLE,
UNKNOWN
UNKNOWN,
CREATED,
REMOVED,
};
/*!

View File

@@ -118,6 +118,12 @@ void ast_endpoint_blob_publish(struct ast_endpoint *endpoint, struct stasis_mess
*/
struct stasis_message_type *ast_endpoint_state_type(void);
/*!
* \brief Message type for endpoint contact state changes.
* \since 13.5
*/
struct stasis_message_type *ast_endpoint_contact_state_type(void);
/*!
* \brief Message type for \ref ast_endpoint_snapshot.
* \since 12