[Asterisk-code-review] chan sip: add missing account code (asterisk[master])

Richard Mudgett asteriskteam at digium.com
Wed Nov 2 10:45:32 CDT 2016


Richard Mudgett has uploaded a new change for review. ( https://gerrit.asterisk.org/4284 )

Change subject: chan_sip: add missing account code
......................................................................

chan_sip: add missing account code

Added missing account to AMI event of sip show peers

ASTERISK-26176 #close

Change-Id: Ieb6c2c80a838a1b59c82103eba4c63ba238dc482
---
M channels/chan_sip.c
1 file changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/84/4284/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2259318..5e23f6f 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -20135,7 +20135,9 @@
 		"ACL: %s\r\n"
 		"Status: %s\r\n"
 		"RealtimeDevice: %s\r\n"
-		"Description: %s\r\n\r\n",
+		"Description: %s\r\n"
+		"Accountcode: %s\r\n"
+		"\r\n",
 		cont->idtext,
 		peer->name,
 		ast_sockaddr_isnull(&peer->addr) ? "-none-" : tmp_host,
@@ -20150,7 +20152,8 @@
 		ast_acl_list_is_empty(peer->acl) ? "no" : "yes",       /* permit/deny/acl */
 		status,
 		cont->realtimepeers ? (peer->is_realtime ? "yes" : "no") : "no",
-		peer->description);
+		peer->description,
+		peer->accountcode);
 	}
 	ao2_unlock(peer);
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieb6c2c80a838a1b59c82103eba4c63ba238dc482
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: scgm11 <scgm11 at gmail.com>



More information about the asterisk-code-review mailing list