diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 22:56:35 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 22:56:35 +0000 |
commit | 269de505507c48cc5ad8880ee51401c5c4251d91 (patch) | |
tree | 759e78cfd38d0ec3110fa20f6f56f08a009175ac /channels/chan_sip.c | |
parent | aac6e270ffd90c6b9daeff484d185447b731fb7b (diff) |
Bug 6853 - Manager fixes: 1) extra ActionID, 2) missing colon
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@16581 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 046fa5eb0..bdd009227 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7984,11 +7984,7 @@ static int _sip_show_peer(int type, int fd, struct mansession *s, struct message ast_cli(fd,"\n"); ASTOBJ_UNREF(peer,sip_destroy_peer); } else if (peer && type == 1) { /* manager listing */ - char *actionid = astman_get_header(m,"ActionID"); - ast_cli(fd, "Channeltype: SIP\r\n"); - if (actionid) - ast_cli(fd, "ActionID: %s\r\n", actionid); ast_cli(fd, "ObjectName: %s\r\n", peer->name); ast_cli(fd, "ChanObjectType: peer\r\n"); ast_cli(fd, "SecretExist: %s\r\n", ast_strlen_zero(peer->secret)?"N":"Y"); @@ -8021,7 +8017,7 @@ static int _sip_show_peer(int type, int fd, struct mansession *s, struct message ast_cli(fd, "SIP-UserPhone: %s\r\n", (ast_test_flag(peer, SIP_USEREQPHONE)?"Y":"N")); /* - is enumerated */ - ast_cli(fd, "SIP-DTMFmode %s\r\n", dtmfmode2str(ast_test_flag(peer, SIP_DTMF))); + ast_cli(fd, "SIP-DTMFmode: %s\r\n", dtmfmode2str(ast_test_flag(peer, SIP_DTMF))); ast_cli(fd, "SIPLastMsg: %d\r\n", peer->lastmsg); ast_cli(fd, "ToHost: %s\r\n", peer->tohost); ast_cli(fd, "Address-IP: %s\r\nAddress-Port: %d\r\n", peer->addr.sin_addr.s_addr ? ast_inet_ntoa(iabuf, sizeof(iabuf), peer->addr.sin_addr) : "", ntohs(peer->addr.sin_port)); |