From ce2c52d51906f485e6d1a0e4e7950d74ce6ff495 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher <tilghman@meg.abyt.es> Date: Wed, 20 Jun 2007 19:30:31 +0000 Subject: [PATCH] Merged revisions 70445 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r70445 | tilghman | 2007-06-20 14:29:23 -0500 (Wed, 20 Jun 2007) | 10 lines Merged revisions 70444 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70444 | tilghman | 2007-06-20 14:25:54 -0500 (Wed, 20 Jun 2007) | 2 lines Issue 9997 - Timelimit times out the wrong channel ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70446 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_dial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_dial.c b/apps/app_dial.c index 3ce59e7814..8bec88b769 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1722,7 +1722,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags if (!res) { if (calldurationlimit > 0) { - chan->whentohangup = time(NULL) + calldurationlimit; + peer->whentohangup = time(NULL) + calldurationlimit; } if (!ast_strlen_zero(dtmfcalled)) { if (option_verbose > 2) -- GitLab