]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Correct an AMI protocol violation with SIPshowpeer
authorKinsey Moore <kmoore@digium.com>
Wed, 31 Aug 2011 15:18:37 +0000 (15:18 +0000)
committerKinsey Moore <kmoore@digium.com>
Wed, 31 Aug 2011 15:18:37 +0000 (15:18 +0000)
The response of SIPshowpeer ends with "\r\n\r\n". Since other commands are
ended by using \r\n this confuses any interfacing script.

(closes issue ASTERISK-17486)

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

channels/chan_sip.c

index 38da5a84f23c226253d8280a7a014f6652415951..e832b14d3b98be475f52993521864d9b04db845a 100644 (file)
@@ -16691,7 +16691,7 @@ static int manager_sip_show_peer(struct mansession *s, const struct message *m)
        a[3] = peer;
 
        _sip_show_peer(1, -1, s, m, 4, a);
-       astman_append(s, "\r\n\r\n" );
+       astman_append(s, "\r\n" );
        return 0;
 }