[asterisk-commits] rmudgett: branch rmudgett/display_text r305737 - /team/rmudgett/display_text/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 1 18:14:43 CST 2011


Author: rmudgett
Date: Tue Feb  1 18:14:39 2011
New Revision: 305737

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=305737
Log:
Interpret the AMI SendText return code correctly.

Modified:
    team/rmudgett/display_text/main/manager.c

Modified: team/rmudgett/display_text/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/display_text/main/manager.c?view=diff&rev=305737&r1=305736&r2=305737
==============================================================================
--- team/rmudgett/display_text/main/manager.c (original)
+++ team/rmudgett/display_text/main/manager.c Tue Feb  1 18:14:39 2011
@@ -3250,7 +3250,7 @@
 	ast_channel_unlock(c);
 	c = ast_channel_unref(c);
 
-	if (res > 0) {
+	if (res >= 0) {
 		astman_send_ack(s, m, "Success");
 	} else {
 		astman_send_error(s, m, "Failure");




More information about the asterisk-commits mailing list