]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 70444 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 20 Jun 2007 19:29:23 +0000 (19:29 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 20 Jun 2007 19:29:23 +0000 (19:29 +0000)
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/branches/1.4@70445 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index c18858021eb5e8503742a5d09936c1c5459585a9..74b51d9749ed387dd69779e8cd2fcdf600b8aab6 100644 (file)
@@ -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)