diff --git a/channels/chan_zap.c b/channels/chan_zap.c index a0b69af1a6..a701243689 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -11216,6 +11216,8 @@ static int process_zap(struct zt_chan_conf *confp, struct ast_variable *v, int r toneduration = atoi(v->value); if (toneduration > -1) { + memset(&dps, 0, sizeof(dps)); + dps.dtmf_tonelen = dps.mfv1_tonelen = toneduration; res = ioctl(ctlfd, ZT_SET_DIALPARAMS, &dps); if (res < 0) {