aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-21 23:25:42 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-21 23:25:42 +0000
commit9534f137ec06cdb5b1ecbb0c79bc1ee6ee7d2ba2 (patch)
tree448b129a8a80db9408306c92d863308824bf9b3a /channels/chan_zap.c
parent1a59b76f97ad075bbdddbb7c92f18760c7156bf5 (diff)
Fix distinctive ring detection.
Reported by: milazzo Patches: drings.diff uploaded by milazzo (license 383) Closes issue #11799 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99424 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 08dc2aead..5294fc393 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -455,8 +455,6 @@ struct zt_pri;
#define POLARITY_REV 1
-static struct zt_distRings drings;
-
struct distRingData {
int ring[3];
int range;
@@ -8356,7 +8354,7 @@ static struct zt_pvt *mkintf(int channel, struct zt_chan_conf conf, struct zt_pr
tmp->permcallwaiting = 0;
/* Flag to destroy the channel must be cleared on new mkif. Part of changes for reload to work */
tmp->destroy = 0;
- tmp->drings = drings;
+ tmp->drings = conf.chan.drings;
tmp->usedistinctiveringdetection = usedistinctiveringdetection;
tmp->callwaitingcallerid = conf.chan.callwaitingcallerid;
tmp->threewaycalling = conf.chan.threewaycalling;
@@ -13149,7 +13147,7 @@ static int process_zap(struct zt_chan_conf *confp, struct ast_variable *v, int r
} else if (!strcasecmp(v->name, "dring3context")) {
ast_copy_string(confp->chan.drings.ringContext[2].contextData,v->value,sizeof(confp->chan.drings.ringContext[2].contextData));
} else if (!strcasecmp(v->name, "dring1range")) {
- drings.ringnum[0].range = atoi(v->value);
+ confp->chan.drings.ringnum[0].range = atoi(v->value);
/* 10 is a nice default. */
if (confp->chan.drings.ringnum[0].range == 0)
confp->chan.drings.ringnum[0].range = 10;