diff options
author | Richard Mudgett <rmudgett@digium.com> | 2011-09-30 16:40:14 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2011-09-30 16:40:14 +0000 |
commit | 977742747df7abb3e1173d86157ba3818ffadd12 (patch) | |
tree | 0bba1bb834165d397f460bfe9def485217e984cd | |
parent | 6e0f9614321ab92b637f69f53d7025923f38f1e3 (diff) |
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
........
Merged revisions 338663 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 338664 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@338665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 05af4f349..a35c02f09 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -17583,8 +17583,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"); |