summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2016-04-12 07:35:01 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-04-12 07:35:01 -0500
commit70c788ec5e9c3ae4ee66ee05541c486849e103dc (patch)
tree269bfbb03a7d827cf3734be1bcc537a42d591467 /res
parentcf1c0277b59bf0b6e721caf4745b0dc08e52c489 (diff)
parent70b7673f09ca53b56d174ea3d220d96eddc088c0 (diff)
Merge "res_pjsip: Add headers to AMI Event ContactStatusDetail" into 13
Diffstat (limited to 'res')
-rw-r--r--res/res_pjsip.c6
-rw-r--r--res/res_pjsip/pjsip_options.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index 2b0e777fa..cc86f9045 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -1829,6 +1829,12 @@
<parameter name="EndpointName">
<para>The name of the endpoint associated with this information.</para>
</parameter>
+ <parameter name="UserAgent">
+ <para>Content of the User-Agent header in REGISTER request</para>
+ </parameter>
+ <parameter name="RegExpire">
+ <para>Absolute time that this contact is no longer valid after</para>
+ </parameter>
</syntax>
</managerEventInstance>
</managerEvent>
diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c
index 3a4524316..b8d38ed42 100644
--- a/res/res_pjsip/pjsip_options.c
+++ b/res/res_pjsip/pjsip_options.c
@@ -1130,6 +1130,8 @@ static int format_contact_status(void *obj, void *arg, int flags)
ast_str_append(&buf, 0, "AOR: %s\r\n", wrapper->aor_id);
ast_str_append(&buf, 0, "URI: %s\r\n", contact->uri);
+ ast_str_append(&buf, 0, "UserAgent: %s\r\n", contact->user_agent);
+ ast_str_append(&buf, 0, "RegExpire: %ld\r\n", contact->expiration_time.tv_sec);
ast_str_append(&buf, 0, "Status: %s\r\n", ast_sip_get_contact_status_label(status->status));
if (status->status == UNKNOWN) {
ast_str_append(&buf, 0, "RoundtripUsec: N/A\r\n");