aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-16 20:47:30 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-16 20:47:30 +0000
commit2076b702796ef1f3e8f02ff545c5b5b6869806c9 (patch)
tree580db19128714822761c8d8162ea0d14f58f9fa2 /channels/chan_zap.c
parent7ba4ed906ec76c37b206df28d663e5d7b5617d79 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@114185 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 54659903f..61708e45f 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) {