From: Richard Mudgett Date: Fri, 30 Sep 2011 16:27:21 +0000 (+0000) Subject: Fix formatting of AMI header for SIP show peer. X-Git-Tag: 1.8.8.0-rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9546515e5312a131212c0b1d987466f80bb2ab1;p=thirdparty%2Fasterisk.git Fix formatting of AMI header for SIP show peer. ASTERISK-17486 exposed the problem for AMI parsers. (closes issue ASTERISK-18649) Reported by: Jacek Konieczny Patches: asterisk-sipshowpeer_response_end.patch (license #6298) patch uploaded by Jacek Konieczny git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@338663 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ef2a8b4a58..b6824bc8aa 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -17077,7 +17077,7 @@ static char *_sip_show_peer(int type, int fd, struct mansession *s, const struct astman_append(s, "ChanVariable: %s=%s\r\n", v->name, v->value); } } - astman_append(s, "SIP-Use-Reason-Header : %s\n", (ast_test_flag(&peer->flags[1], SIP_PAGE2_Q850_REASON)) ? "Y" : "N"); + astman_append(s, "SIP-Use-Reason-Header: %s\r\n", (ast_test_flag(&peer->flags[1], SIP_PAGE2_Q850_REASON)) ? "Y" : "N"); peer = unref_peer(peer, "sip_show_peer: unref_peer: done with peer");