From: Automerge Script Date: Thu, 7 Jun 2007 15:25:21 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.19-netsec~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5fd3ada2ed67ded4e1287308b87486f92d5625a;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@68117 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 074226e0d2..ccd6489c87 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1660,8 +1660,11 @@ out: pbx_builtin_setvar_helper(chan, "DIALSTATUS", status); ast_log(LOG_DEBUG, "Exiting with DIALSTATUS=%s.\n", status); - if ((ast_test_flag(peerflags, OPT_GO_ON)) && (!chan->_softhangup) && (res != AST_PBX_KEEPALIVE)) + if ((ast_test_flag(peerflags, OPT_GO_ON)) && (!chan->_softhangup) && (res != AST_PBX_KEEPALIVE)) { + if (calldurationlimit) + chan->whentohangup = 0; res=0; + } LOCAL_USER_REMOVE(u);