[Asterisk-code-review] res pjsip: add Useragent and RegExpire to AMI Event ContactS... (asterisk[13])

Alexei Gradinari asteriskteam at digium.com
Thu Apr 7 16:20:22 CDT 2016


Alexei Gradinari has uploaded a new change for review.

  https://gerrit.asterisk.org/2555

Change subject: res_pjsip: add Useragent and RegExpire to AMI Event ContactStatus
......................................................................

res_pjsip: add Useragent and RegExpire to AMI Event ContactStatus

This patch added Useragent and RegExpire to AMI Event ContactStatus

ASTERISK-25903

Change-Id: If3d121e943e588d016ba51d4eb9c6a421a562239
---
M res/res_pjsip/pjsip_options.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/55/2555/1

diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c
index 3a45243..e98f22b 100644
--- a/res/res_pjsip/pjsip_options.c
+++ b/res/res_pjsip/pjsip_options.c
@@ -1130,6 +1130,8 @@
 
 	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");

-- 
To view, visit https://gerrit.asterisk.org/2555
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3d121e943e588d016ba51d4eb9c6a421a562239
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>



More information about the asterisk-code-review mailing list