]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
manager: Return ActionID on nominal responses to PresenceState action
authorMatthew Jordan <mjordan@digium.com>
Tue, 15 Jul 2014 22:20:54 +0000 (22:20 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 15 Jul 2014 22:20:54 +0000 (22:20 +0000)
When the PresenceState action is executed, the nominal path fails to include
the ActionID in the successful response. This patch adds a call to
astman_start_ack, which guarantees that an ActionID (if provided) will be
sent back to the AMI client.

Review: https://reviewboard.asterisk.org/r/3776/

ASTERISK-23985 #close
........

Merged revisions 418713 from http://svn.asterisk.org/svn/asterisk/branches/11

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

main/manager.c

index cb242c4a02773a24a0030dc861c5c9611bb41f67..f8593ca8b70261cdd517b7f9698d97e17660aec2 100644 (file)
@@ -5043,6 +5043,7 @@ static int action_presencestate(struct mansession *s, const struct message *m)
                                "Message: %s\r\n", message);
        }
 
+       astman_start_ack(s, m);
        astman_append(s, "Message: Presence State\r\n"
                        "State: %s\r\n"
                        "%s"