summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2014-02-17 15:36:45 +0000
committerMark Michelson <mmichelson@digium.com>2014-02-17 15:36:45 +0000
commited66eefdf0f0974c5b403dff501108b122f230b2 (patch)
tree32ac4a90c07f5fb89c0dd57926270ae4c0bb2bb1 /include
parent438a7abc279bbcd6e0e770b72d5023555a86c7fd (diff)
Store SIP User-Agent information in contacts.
When an endpoint sends a REGISTER request to Asterisk, we now will associate the User-Agent header with all contacts that were bound in that REGISTER request. ........ Merged revisions 408270 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@408272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/res_pjsip.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h
index 82f942ba1..80919c7d8 100644
--- a/include/asterisk/res_pjsip.h
+++ b/include/asterisk/res_pjsip.h
@@ -153,6 +153,8 @@ struct ast_sip_contact {
AST_STRING_FIELD(outbound_proxy);
/*! Path information to place in Route headers */
AST_STRING_FIELD(path);
+ /*! Content of the User-Agent header in REGISTER request */
+ AST_STRING_FIELD(user_agent);
);
/*! Absolute time that this contact is no longer valid after */
struct timeval expiration_time;
@@ -905,12 +907,13 @@ struct ast_sip_contact *ast_sip_location_retrieve_contact(const char *contact_na
* \param uri Full contact URI
* \param expiration_time Optional expiration time of the contact
* \param path_info Path information
+ * \param user_agent User-Agent header from REGISTER request
*
* \retval -1 failure
* \retval 0 success
*/
int ast_sip_location_add_contact(struct ast_sip_aor *aor, const char *uri,
- struct timeval expiration_time, const char *path_info);
+ struct timeval expiration_time, const char *path_info, const char *user_agent);
/*!
* \brief Update a contact