aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-22 21:16:04 +0000
committerrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-22 21:16:04 +0000
commit14194cacf54fca15caba5c92e71d0268525897d6 (patch)
tree6dbb2531066258b08bd348603d2905ae8bf68b85 /channels
parent713000a04cdf2a60ae6412d4ff90bbcd1c0bbe15 (diff)
DNID not cleared when channel hang up (Affects PRI and SS7)
The "dahdi show channels" CLI command still reports the DNID of the previous call even if the call is already hang up. The "dahdi show channels" command of older releases clear the DNID once the channel is hang up. Regression from the sig_analog/sig_pri extraction from chan_dahdi. (closes issue #17623) Reported by: klaus3000 Patches: issue17623.patch uploaded by rmudgett (license 664) Tested by: rmudgett git-svn-id: http://svn.digium.com/svn/asterisk/trunk@278777 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 3112bfaaa..85855e6a4 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -5846,6 +5846,7 @@ static int dahdi_hangup(struct ast_channel *ast)
}
ast_mutex_lock(&p->lock);
+ p->exten[0] = '\0';
if (analog_lib_handles(p->sig, p->radio, p->oprmode)) {
dahdi_confmute(p, 0);
restore_gains(p);
@@ -5975,7 +5976,6 @@ static int dahdi_hangup(struct ast_channel *ast)
}
if (p->dsp)
ast_dsp_set_digitmode(p->dsp, DSP_DIGITMODE_DTMF | p->dtmfrelax);
- p->exten[0] = '\0';
ast_debug(1, "Hangup: channel: %d index = %d, normal = %d, callwait = %d, thirdcall = %d\n",
p->channel, idx, p->subs[SUB_REAL].dfd, p->subs[SUB_CALLWAIT].dfd, p->subs[SUB_THREEWAY].dfd);