diff options
author | Sebastian Gutierrez <sgutierrez@integraccs.com> | 2016-11-01 21:48:50 -0300 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-11-02 10:44:22 -0500 |
commit | 1012c284378582cb9eae81e96e49e11429e5308a (patch) | |
tree | 9fa94cf3101aa6a56d739d235ebcf299f2b27c61 /channels/chan_sip.c | |
parent | abfb7b5d4a77b6fc2a624b545aab53f4319be908 (diff) |
chan_sip: add missing account code
Added missing account to AMI event of sip show peers
ASTERISK-26176 #close
Change-Id: Ieb6c2c80a838a1b59c82103eba4c63ba238dc482
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8e1f677b6..260ff0a03 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -20129,7 +20129,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, @@ -20144,7 +20146,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); |