diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-15 18:25:34 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-15 18:25:34 +0000 |
commit | cdc7f99d9ae84d9938b41cce555ac877c250f9ee (patch) | |
tree | d5c76931765ff63fd2b3fd134eb867a3f0486979 /channels | |
parent | 92d86d378007c6271141b0b1e187fc35402b6864 (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: http://svn.digium.com/svn/asterisk/trunk@131044 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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; } |