]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Restore Extra Line Break Between Peers When Running AMI Action SIPPeers
authorMichael L. Young <elgueromexicano@gmail.com>
Mon, 5 Aug 2013 19:45:49 +0000 (19:45 +0000)
committerMichael L. Young <elgueromexicano@gmail.com>
Mon, 5 Aug 2013 19:45:49 +0000 (19:45 +0000)
The commit (r387133) for fixing ASTERISK-21466 accidentally removed an extra
line break between the peers returned by the AMI action SIPPeers.  This
results in some parsers breaking because they expect this extra line break.

This patch restores that extra line break.

(closes issue ASTERISK-22239)
Reported by: Jacek Konieczny
Tested by: Jacek Konieczny, Michael L. Young
Patches:
    asterisk-ami_sippeers_separator.patch by Jacek Konieczny (license 6298)

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

channels/chan_sip.c

index 0987cf76b664b24f8833206bcf669849c551b22c..64798b0c7d054fb8e8f9848fb25e72b8443e78c5 100644 (file)
@@ -17528,7 +17528,7 @@ static struct sip_peer *_sip_show_peers_one(int fd, struct mansession *s, struct
                "TextSupport: %s\r\n"
                "ACL: %s\r\n"
                "Status: %s\r\n"
-               "RealtimeDevice: %s\r\n",
+               "RealtimeDevice: %s\r\n\r\n",
                cont->idtext,
                peer->name,
                ast_sockaddr_isnull(&peer->addr) ? "-none-" : tmp_host,