From 6c07c904aaae4a7d0ab7c74ade39b52365359178 Mon Sep 17 00:00:00 2001 From: Jonathan Rose Date: Wed, 29 Aug 2012 19:38:52 +0000 Subject: chan_sip: Change manager event to confirm SIPqualifypeer into an ack Matt Jordan informed me that it was more appropriate to use an astman_send_ack here instead of making an event response. I've also used this opportunity to update UPGRADE.txt to mention this change in behavior. (issue AST-969) Reported by: John Bigelow git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@371889 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'channels/chan_sip.c') diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f5d5a79c6..c5badfe90 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18934,14 +18934,6 @@ static char *_sip_qualify_peer(int type, int fd, struct mansession *s, const str struct sip_peer *peer; int load_realtime; - const char *id = astman_get_header(m,"ActionID"); - char idText[256] = ""; - - if (!ast_strlen_zero(id)) { - snprintf(idText, sizeof(idText), "ActionID: %s\r\n", id); - } - - if (argc < 4) return CLI_SHOWUSAGE; @@ -18958,11 +18950,7 @@ static char *_sip_qualify_peer(int type, int fd, struct mansession *s, const str } if (type != 0) { - astman_append(s, - "Event: SIPqualifypeerComplete\r\n" - "%s" - "\r\n", - idText); + astman_send_ack(s, m, "Qualify Peer successful"); } return CLI_SUCCESS; -- cgit v1.2.3