[Asterisk-Dev] bug in chan_iax2.c to enable qualifysmoothing
Brad Borgald
skibum at nbriders.ca
Wed Aug 31 19:56:07 MST 2005
ast_true(v->value) returns "-1", not 1, so it was impossible to enable
qualifysmoothing.
--- chan_iax2.c 2005-08-31 23:53:01.000000000 -0300
+++ /tmp/chan_iax2.c 2005-08-31 23:45:44.000000000 -0300
@@ -8088,7 +8088,8 @@
peer->maxms = 0;
}
} else if (!strcasecmp(v->name,
"qualifysmoothing")) {
- peer->smoothing = ast_true(v->value);
+ if (ast_true(v->value))
+ peer->smoothing = 1;
} else if (!strcasecmp(v->name, "qualifyfreqok")) {
if (sscanf(v->value, "%d",
&peer->pokefreqok) != 1) {
ast_log(LOG_WARNING,
"Qualification testing frequency of peer '%s' when OK should a number of
milliseconds at line %d of iax.conf\n", peer->name, v->lineno);
More information about the asterisk-dev
mailing list