diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-05 16:44:34 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-05 16:44:34 +0000 |
commit | 45ee9142e990865381879efb780d9de17ce7927f (patch) | |
tree | 771f354d451b97da529e4c4b9ff2f5362c4b5dc4 /channels/chan_agent.c | |
parent | 7b56385e0ed531817e0be35ba0f0fb1352a6d149 (diff) |
The logic of a strcasecmp call was reversed
(closes issue #13841)
Reported by: clegall_proformatique
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@154724 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_agent.c')
-rw-r--r-- | channels/chan_agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index efba49e77..62a5c2d1c 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -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; |