summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2015-11-30 21:19:18 -0700
committerGeorge Joseph <george.joseph@fairview5.com>2015-12-02 19:32:26 -0700
commited9134282e22c6985ce853f53d7569aa5b93ebe0 (patch)
tree63de5799220775edf7d9500316287735c7ca7fcf /include/asterisk
parenteadad24b595c3b6e5f0472f9936e7e37259308b5 (diff)
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
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/res_pjsip.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h
index 37b766211..6ca56bdcf 100644
--- a/include/asterisk/res_pjsip.h
+++ b/include/asterisk/res_pjsip.h
@@ -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;
};
/*!