[asterisk-commits] moy: branch moy/mfcr2-1.4 r179460 - /team/moy/mfcr2-1.4/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 2 16:46:25 CST 2009


Author: moy
Date: Mon Mar  2 16:46:22 2009
New Revision: 179460

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=179460
Log:
fix ast_true usage in openr2 bool values

Modified:
    team/moy/mfcr2-1.4/channels/chan_dahdi.c

Modified: team/moy/mfcr2-1.4/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/team/moy/mfcr2-1.4/channels/chan_dahdi.c?view=diff&rev=179460&r1=179459&r2=179460
==============================================================================
--- team/moy/mfcr2-1.4/channels/chan_dahdi.c (original)
+++ team/moy/mfcr2-1.4/channels/chan_dahdi.c Mon Mar  2 16:46:22 2009
@@ -12786,23 +12786,23 @@
 					ast_log(LOG_WARNING, "Metering pulse timeout greater than 500ms is not recommended, you have been warned!\n");
 				}
 			} else if (!strcasecmp(v->name, "mfcr2_get_ani_first")) {
-				mfcr2_cur_get_ani_first = ast_true(v->value);
+				mfcr2_cur_get_ani_first = ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_skip_category")) {
-				mfcr2_cur_skip_category = ast_true(v->value);
+				mfcr2_cur_skip_category = ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_double_answer")) {
-				mfcr2_cur_double_answer = ast_true(v->value);
+				mfcr2_cur_double_answer = ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_accept_on_offer")) {
-				mfcr2_cur_accept_on_offer = ast_true(v->value);
+				mfcr2_cur_accept_on_offer = ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_charge_calls")) {
-				mfcr2_cur_charge_calls = ast_true(v->value);
+				mfcr2_cur_charge_calls = ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_allow_collect_calls")) {
-				mfcr2_cur_allow_collect_calls = ast_true(v->value);
+				mfcr2_cur_allow_collect_calls = ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_forced_release")) {
-				mfcr2_cur_forced_release= ast_true(v->value);
+				mfcr2_cur_forced_release= ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_immediate_accept")) {
-				mfcr2_cur_immediate_accept = ast_true(v->value);
+				mfcr2_cur_immediate_accept = ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_call_files")) {
-				mfcr2_cur_call_files = ast_true(v->value);
+				mfcr2_cur_call_files = ast_true(v->value) ? 1 : 0;
 			} else if (!strcasecmp(v->name, "mfcr2_max_ani")) {
 				mfcr2_cur_max_ani = atoi(v->value);
 				if (mfcr2_cur_max_ani >= AST_MAX_EXTENSION) {




More information about the asterisk-commits mailing list