diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-16 20:46:38 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-16 20:46:38 +0000 |
commit | 011523c9d53b8f6b79356680ae2232cdde082de3 (patch) | |
tree | 50c8006aa30c8008abc82f7d2e32a5c02ada2efe /channels | |
parent | 77b9169437a099922229116a1178a09686dba2b2 (diff) |
use the ZT_SET_DIALPARAMS ioctl properly by initializing the structure to all zeroes in case it contains fields that we don't write values into (which it does as of Zaptel 1.4.10)
(closes issue #12456)
Reported by: fnordian
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114184 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_zap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index a0b69af1a..a70124368 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) { |