diff options
author | Alexei Gradinari <alex2grad@gmail.com> | 2016-04-07 17:18:03 -0400 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-04-11 22:26:37 -0500 |
commit | 49813bc9e569c46ced4d0f09b34153ae2f9463ab (patch) | |
tree | 0eba9138557175953c194895bb4fa7864b2a817e /res | |
parent | 74951bd591920477168bd6098f675c94506b3baa (diff) |
res_pjsip: Add headers to AMI Event ContactStatusDetail
* Added Useragent and RegExpire headers to AMI Event
ContactStatusDetail with associated documentation.
ASTERISK-25903 #close
Change-Id: If3d121e943e588d016ba51d4eb9c6a421a562239
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip.c | 6 | ||||
-rw-r--r-- | res/res_pjsip/pjsip_options.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index f4dc72549..d12951c45 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -1835,6 +1835,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 7fd606d77..fc64947ed 100644 --- a/res/res_pjsip/pjsip_options.c +++ b/res/res_pjsip/pjsip_options.c @@ -1119,6 +1119,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"); |