[asterisk-commits] mmichelson: branch 1.4 r154724 - /branches/1.4/channels/chan_agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Nov 5 10:44:35 CST 2008


Author: mmichelson
Date: Wed Nov  5 10:44:34 2008
New Revision: 154724

URL: http://svn.digium.com/view/asterisk?view=rev&rev=154724
Log:
The logic of a strcasecmp call was reversed

(closes issue #13841)
Reported by: clegall_proformatique


Modified:
    branches/1.4/channels/chan_agent.c

Modified: branches/1.4/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_agent.c?view=diff&rev=154724&r1=154723&r2=154724
==============================================================================
--- branches/1.4/channels/chan_agent.c (original)
+++ branches/1.4/channels/chan_agent.c Wed Nov  5 10:44:34 2008
@@ -2453,7 +2453,7 @@
 				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;




More information about the asterisk-commits mailing list