[asterisk-commits] kpfleming: branch 1.4 r114184 - /branches/1.4/channels/chan_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 16 15:46:38 CDT 2008
Author: kpfleming
Date: Wed Apr 16 15:46:38 2008
New Revision: 114184
URL: http://svn.digium.com/view/asterisk?view=rev&rev=114184
Log:
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
Modified:
branches/1.4/channels/chan_zap.c
Modified: branches/1.4/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_zap.c?view=diff&rev=114184&r1=114183&r2=114184
==============================================================================
--- branches/1.4/channels/chan_zap.c (original)
+++ branches/1.4/channels/chan_zap.c Wed Apr 16 15:46:38 2008
@@ -11216,6 +11216,8 @@
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) {
More information about the asterisk-commits
mailing list