diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-07-15 18:25:34 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-07-15 18:25:34 +0000 |
commit | 49715c05f12d590f5bfd25aa9336c306c4269adf (patch) | |
tree | d5c76931765ff63fd2b3fd134eb867a3f0486979 /channels/chan_sip.c | |
parent | fe874bfe6b3b1acb79217d34e713c134d720606a (diff) |
Merged revisions 130959 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r130959 | tilghman | 2008-07-15 12:19:13 -0500 (Tue, 15 Jul 2008) | 8 lines
astman_send_error does not need a newline appended -- the API takes care of
that for us.
(closes issue #13068)
Reported by: gknispel_proformatique
Patches:
asterisk_1_4_astman_send.patch uploaded by gknispel (license 261)
asterisk_trunk_astman_send.patch uploaded by gknispel (license 261)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@131044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 35a208bf5..afc9fa8ce 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12905,7 +12905,7 @@ static int manager_sip_show_peer(struct mansession *s, const struct message *m) peer = astman_get_header(m, "Peer"); if (ast_strlen_zero(peer)) { - astman_send_error(s, m, "Peer: <name> missing.\n"); + astman_send_error(s, m, "Peer: <name> missing."); return 0; } a[0] = "sip"; @@ -12951,7 +12951,7 @@ static char *_sip_qualify_peer(int type, int fd, struct mansession *s, const str } else if (type == 0) { ast_cli(fd, "Peer '%s' not found\n", argv[3]); } else { - astman_send_error(s, m, "Peer not found\n"); + astman_send_error(s, m, "Peer not found"); } return CLI_SUCCESS; } @@ -12964,7 +12964,7 @@ static int manager_sip_qualify_peer(struct mansession *s, const struct message * peer = astman_get_header(m, "Peer"); if (ast_strlen_zero(peer)) { - astman_send_error(s, m, "Peer: <name> missing.\n"); + astman_send_error(s, m, "Peer: <name> missing."); return 0; } a[0] = "sip"; @@ -13036,7 +13036,7 @@ static char *_sip_show_peer(int type, int fd, struct mansession *s, const struct if (!ast_strlen_zero(id)) astman_append(s, "ActionID: %s\r\n", id); } else { - snprintf (cbuf, sizeof(cbuf), "Peer %s not found.\n", argv[3]); + snprintf (cbuf, sizeof(cbuf), "Peer %s not found.", argv[3]); astman_send_error(s, m, cbuf); return CLI_SUCCESS; } |