aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-xchannels/chan_zap.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 360905787..9935b8d75 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -6239,14 +6239,17 @@ int load_module()
} else if (!strcasecmp(v->name, "callprogress")) {
callprogress = ast_true(v->value);
} else if (!strcasecmp(v->name, "echocancel")) {
- if (v->value && strlen(v->value))
+ if (v->value && strlen(v->value)) {
y = atoi(v->value);
- else
+ } else
y = 0;
if ((y == 32) || (y == 64) || (y == 128) || (y == 256))
echocancel = y;
- else
+ else {
echocancel = ast_true(v->value);
+ if (echocancel)
+ echocancel=128;
+ }
} else if (!strcasecmp(v->name, "hidecallerid")) {
hidecallerid = ast_true(v->value);
} else if (!strcasecmp(v->name, "callreturn")) {