From: Kevin P. Fleming Date: Wed, 16 Apr 2008 20:47:30 +0000 (+0000) Subject: Merged revisions 114184 via svnmerge from X-Git-Tag: 1.6.2.0-beta1~2460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a51fb142f9a942e501c0e4400d94183504f68335;p=thirdparty%2Fasterisk.git Merged revisions 114184 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114184 | kpfleming | 2008-04-16 15:46:38 -0500 (Wed, 16 Apr 2008) | 6 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@114185 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 54659903f9..61708e45fb 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -13958,6 +13958,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) {