diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-07 14:19:40 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-07 14:19:40 +0000 |
commit | 30bc4f468f7e114174717a7a1ac9683e68310f42 (patch) | |
tree | 075c1f6007f3120382bb0d6dad714fc87027ba04 | |
parent | b2a3de6c8042e17cbb3cab8870c683b78288f569 (diff) |
Allow the 'g' option to work if used with the 'S' option. (issue #9888 reported by gasparz)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68070 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_dial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 074226e0d..ccd6489c8 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); |