]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
The logic of a strcasecmp call was reversed
authorMark Michelson <mmichelson@digium.com>
Wed, 5 Nov 2008 16:44:34 +0000 (16:44 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 5 Nov 2008 16:44:34 +0000 (16:44 +0000)
(closes issue #13841)
Reported by: clegall_proformatique

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

channels/chan_agent.c

index efba49e77dce771281cee19ec8cd3100f22c28a5..62a5c2d1c65f6b991e969191ba76dab90f4802fa 100644 (file)
@@ -2453,7 +2453,7 @@ static int action_agent_callback_login(struct mansession *s, const struct messag
                                p->wrapuptime = 0;
                }
 
-               if (strcasecmp(ackcall_s, "always"))
+               if (!strcasecmp(ackcall_s, "always"))
                        p->ackcall = 2;
                else if (ast_true(ackcall_s))
                        p->ackcall = 1;