[asterisk-commits] kpfleming: trunk r114185 - in /trunk: ./ channels/chan_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 16 15:47:30 CDT 2008
Author: kpfleming
Date: Wed Apr 16 15:47:30 2008
New Revision: 114185
URL: http://svn.digium.com/view/asterisk?view=rev&rev=114185
Log:
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
........
Modified:
trunk/ (props changed)
trunk/channels/chan_zap.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=114185&r1=114184&r2=114185
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Wed Apr 16 15:47:30 2008
@@ -13958,6 +13958,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