[asterisk-commits] moy: branch moy/mfcr2 r179472 - /team/moy/mfcr2/channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 2 17:15:31 CST 2009
Author: moy
Date: Mon Mar 2 17:15:27 2009
New Revision: 179472
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=179472
Log:
use just 1 and 0 values for bool settings to allow usage of -1 for default values
Modified:
team/moy/mfcr2/channels/chan_dahdi.c
Modified: team/moy/mfcr2/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/team/moy/mfcr2/channels/chan_dahdi.c?view=diff&rev=179472&r1=179471&r2=179472
==============================================================================
--- team/moy/mfcr2/channels/chan_dahdi.c (original)
+++ team/moy/mfcr2/channels/chan_dahdi.c Mon Mar 2 17:15:27 2009
@@ -16669,21 +16669,21 @@
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")) {
- confp->mfcr2.get_ani_first = ast_true(v->value);
+ confp->mfcr2.get_ani_first = ast_true(v->value) ? 1 : 0;
} else if (!strcasecmp(v->name, "mfcr2_double_answer")) {
- confp->mfcr2.double_answer = ast_true(v->value);
+ confp->mfcr2.double_answer = ast_true(v->value) ? 1 : 0;
} else if (!strcasecmp(v->name, "mfcr2_charge_calls")) {
- confp->mfcr2.charge_calls = ast_true(v->value);
+ confp->mfcr2.charge_calls = ast_true(v->value) ? 1 : 0;
} else if (!strcasecmp(v->name, "mfcr2_accept_on_offer")) {
confp->mfcr2.accept_on_offer = ast_true(v->value);
} else if (!strcasecmp(v->name, "mfcr2_allow_collect_calls")) {
- confp->mfcr2.allow_collect_calls = ast_true(v->value);
+ confp->mfcr2.allow_collect_calls = ast_true(v->value) ? 1 : 0;
} else if (!strcasecmp(v->name, "mfcr2_forced_release")) {
- confp->mfcr2.forced_release = ast_true(v->value);
+ confp->mfcr2.forced_release = ast_true(v->value) ? 1 : 0;
} else if (!strcasecmp(v->name, "mfcr2_immediate_accept")) {
- confp->mfcr2.immediate_accept = ast_true(v->value);
+ confp->mfcr2.immediate_accept = ast_true(v->value) ? 1 : 0;
} else if (!strcasecmp(v->name, "mfcr2_call_files")) {
- confp->mfcr2.call_files = ast_true(v->value);
+ confp->mfcr2.call_files = ast_true(v->value) ? 1 : 0;
} else if (!strcasecmp(v->name, "mfcr2_max_ani")) {
confp->mfcr2.max_ani = atoi(v->value);
if (confp->mfcr2.max_ani >= AST_MAX_EXTENSION){
More information about the asterisk-commits
mailing list