summaryrefslogtreecommitdiff
path: root/include/asterisk/res_pjsip.h
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:37:09 -0700
commitbd265a90be0f372ce71301ce358e92cdf2a5434d (patch)
tree6e4d137adda0a5aa9909d8164ffb94e509e871ad /include/asterisk/res_pjsip.h
parentb5281b74e0572e9ca574098937765647bf2e953a (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/res_pjsip.h')
-rw-r--r--include/asterisk/res_pjsip.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h
index 95b8f23eb..d9123f983 100644
--- a/include/asterisk/res_pjsip.h
+++ b/include/asterisk/res_pjsip.h
@@ -159,6 +159,8 @@ struct ast_sip_contact {
AST_STRING_FIELD(path);
/*! Content of the User-Agent header in REGISTER request */
AST_STRING_FIELD(user_agent);
+ /*! The name of the aor this contact belongs to */
+ AST_STRING_FIELD(aor);
);
/*! Absolute time that this contact is no longer valid after */
struct timeval expiration_time;
@@ -193,6 +195,12 @@ enum ast_sip_contact_status_type {
*/
struct ast_sip_contact_status {
SORCERY_OBJECT(details);
+ AST_DECLARE_STRING_FIELDS(
+ /*! The original contact's URI */
+ AST_STRING_FIELD(uri);
+ /*! The name of the aor this contact_status belongs to */
+ AST_STRING_FIELD(aor);
+ );
/*! Current status for a contact (default - unavailable) */
enum ast_sip_contact_status_type status;
/*! The round trip start time set before sending a qualify request */