]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: add missing account code 75/4275/2
authorSebastian Gutierrez <sgutierrez@integraccs.com>
Wed, 2 Nov 2016 00:48:50 +0000 (21:48 -0300)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 2 Nov 2016 15:42:57 +0000 (10:42 -0500)
Added missing account to AMI event of sip show peers

ASTERISK-26176 #close

Change-Id: Ieb6c2c80a838a1b59c82103eba4c63ba238dc482

channels/chan_sip.c

index 4c742cefe8c95ab6d9b6bf4297ee7d0999792e83..b6b4cc86e50c7eb36d26abb0620f0f5c3fbb09e0 100644 (file)
@@ -20072,7 +20072,9 @@ static struct sip_peer *_sip_show_peers_one(int fd, struct mansession *s, struct
                "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 +20089,8 @@ static struct sip_peer *_sip_show_peers_one(int fd, struct mansession *s, struct
                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);