summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-07-28 21:07:38 +0000
committerMark Spencer <markster@digium.com>2004-07-28 21:07:38 +0000
commitdeb02a000f8d0ba8f82dc0bdf23ab80f94d39189 (patch)
treea7f142dcae1f431cc2e2a310bf614f3fffc361f7 /channels
parentbaef4818d275a582d0faf1437ed42e0b8204e2cf (diff)
Add "username" to sip show peer (bug #2163) as well as a few config cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index fe1dcd664..186da241a 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5582,6 +5582,7 @@ static int sip_show_peer(int fd, int argc, char *argv[])
ast_cli(fd, " ToHost : %s\n", peer->tohost);
ast_cli(fd, " Addr->IP : %s Port %d\n", peer->addr.sin_addr.s_addr ? ast_inet_ntoa(iabuf, sizeof(iabuf), peer->addr.sin_addr) : "(Unspecified)", ntohs(peer->addr.sin_port));
ast_cli(fd, " Defaddr->IP : %s Port %d\n", ast_inet_ntoa(iabuf, sizeof(iabuf), peer->defaddr.sin_addr), ntohs(peer->defaddr.sin_port));
+ ast_cli(fd, " Username : %s\n", peer->username);
ast_cli(fd, " Codecs : ");
/* This should really be a function in frame.c */
if (peer->capability & AST_FORMAT_G723_1)