]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix formatting of AMI header for SIP show peer.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 30 Sep 2011 16:35:48 +0000 (16:35 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 30 Sep 2011 16:35:48 +0000 (16:35 +0000)
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
........

Merged revisions 338663 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@338664 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index a33f16fbc99a1e3e67e5d66ee2b52a1629a9fb65..4f22c64326d4b58ea36e5e9f64c41da5ac8b1ad1 100644 (file)
@@ -17554,8 +17554,8 @@ 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\r\n", (ast_test_flag(&peer->flags[1], SIP_PAGE2_Q850_REASON)) ? "Y" : "N");
-               astman_append(s, "Description : %s\r\n", peer->description);
+               astman_append(s, "SIP-Use-Reason-Header: %s\r\n", (ast_test_flag(&peer->flags[1], SIP_PAGE2_Q850_REASON)) ? "Y" : "N");
+               astman_append(s, "Description: %s\r\n", peer->description);
 
                peer = sip_unref_peer(peer, "sip_show_peer: sip_unref_peer: done with peer");