[Asterisk-code-review] add account code to sip show peers ami (asterisk[13])

scgm11 asteriskteam at digium.com
Sun Oct 30 13:50:45 CDT 2016


scgm11 has uploaded a new change for review. ( https://gerrit.asterisk.org/4237 )

Change subject: add account code to sip show peers ami
......................................................................

add account code to sip show peers ami

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


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/37/4237/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 1f3a2f4..47c7a13 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -20072,7 +20072,8 @@
 		"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,
@@ -20087,7 +20088,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/4237
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5fed41f3c8caf880820f91972d4b8bf623edb728
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: scgm11 <scgm11 at gmail.com>



More information about the asterisk-code-review mailing list