]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue 8987 - Status could return two responses (mnicholson)
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 6 Feb 2007 06:58:28 +0000 (06:58 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 6 Feb 2007 06:58:28 +0000 (06:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53245 65c4cc65-6c06-0410-ace0-fbb531ad65f3

manager.c

index 419d7cae4ca02d69ca212c8a562523219b622bc8..d3488db7f74b0ae068dfa6e9442cfc19d1139e1b 100644 (file)
--- a/manager.c
+++ b/manager.c
@@ -773,7 +773,6 @@ static int action_status(struct mansession *s, struct message *m)
        long elapsed_seconds=0;
        int all = ast_strlen_zero(name); /* set if we want all channels */
 
-       astman_send_ack(s, m, "Channel status will follow");
         if (!ast_strlen_zero(id))
                 snprintf(idText,256,"ActionID: %s\r\n",id);
        if (all)
@@ -785,6 +784,7 @@ static int action_status(struct mansession *s, struct message *m)
                        return 0;
                }
        }
+       astman_send_ack(s, m, "Channel status will follow");
        /* if we look by name, we break after the first iteration */
        while(c) {
                if (c->_bridge)