From 6f2e5448870a72b352c7fcb0e1547a85825145e9 Mon Sep 17 00:00:00 2001 From: tilghman Date: Wed, 20 Jun 2007 19:29:23 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/branches/1.4@70445 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_dial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/app_dial.c b/apps/app_dial.c index c18858021..74b51d974 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1575,7 +1575,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) -- cgit v1.2.3