aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-22 16:04:08 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-22 16:04:08 +0000
commitcf84630bc2eea506d9eb010babe2cc1cce8516d4 (patch)
tree35246dfb3e6084dbb2dbcdad99a2362f28b1337f
parent7f0b18b05363219fbc7da724660d9f9852ff8310 (diff)
Merged revisions 189911 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r189911 | tilghman | 2009-04-22 11:01:30 -0500 (Wed, 22 Apr 2009) | 7 lines Do not continue to receive DTMF, when the channel is hungup and about to be destroyed. (closes issue #14858) Reported by: barryf Patches: 20090421__bug14858.diff.txt uploaded by tilghman (license 14) Tested by: barryf ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@189914 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_unistim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c
index 818a32d71..0220fc096 100644
--- a/channels/chan_unistim.c
+++ b/channels/chan_unistim.c
@@ -2474,7 +2474,7 @@ static int unistim_do_senddigit(struct unistimsession *pte, char digit)
struct ast_frame f = { 0, };
struct unistim_subchannel *sub;
sub = pte->device->lines->subs[SUB_REAL];
- if (!sub->owner) {
+ if (!sub->owner || sub->alreadygone) {
ast_log(LOG_WARNING, "Unable to find subchannel in dtmf senddigit\n");
return -1;
}
@@ -4224,8 +4224,8 @@ static int unistim_senddigit_end(struct ast_channel *ast, char digit, unsigned i
sub = pte->device->lines->subs[SUB_REAL];
- if (!sub->owner) {
- ast_log(LOG_WARNING, "Unable to find subchannel in dtmf senddigiti_end\n");
+ if (!sub->owner || sub->alreadygone) {
+ ast_log(LOG_WARNING, "Unable to find subchannel in dtmf senddigit_end\n");
return -1;
}