mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 05:02:29 +00:00
res_pjsip: Update logging to show contact->uri in messages
An earlier commit changed the id of dynamic contacts to contain a hash instead of the uri. This patch updates status change logging to show the aor/uri instead of the id. This required adding the aor id to contact and contact_status and adding uri to contact_status. The aor id gets added to contact and contact_status in their allocators and the uri gets added to contact_status in pjsip_options when the contact_status is created or updated. ASTERISK-25598 #close Reported-by: George Joseph Tested-by: George Joseph Change-Id: I56cbec1d2ddbe8461367dd8b6da8a6f47f6fe511
This commit is contained in:
@@ -170,6 +170,8 @@ struct ast_sip_contact {
|
||||
double qualify_timeout;
|
||||
/*! Endpoint that added the contact, only available in observers */
|
||||
struct ast_sip_endpoint *endpoint;
|
||||
/*! The name of the aor this contact belongs to */
|
||||
char *aor;
|
||||
};
|
||||
|
||||
#define CONTACT_STATUS "contact_status"
|
||||
@@ -201,6 +203,10 @@ struct ast_sip_contact_status {
|
||||
int64_t rtt;
|
||||
/*! Last status for a contact (default - unavailable) */
|
||||
enum ast_sip_contact_status_type last_status;
|
||||
/*! The name of the aor this contact_status belongs to */
|
||||
char *aor;
|
||||
/*! The original contact's URI */
|
||||
char *uri;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user