[asterisk-commits] file: branch 1.2 r68070 -
/branches/1.2/apps/app_dial.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jun 7 07:19:41 MST 2007
Author: file
Date: Thu Jun 7 09:19:40 2007
New Revision: 68070
URL: http://svn.digium.com/view/asterisk?view=rev&rev=68070
Log:
Allow the 'g' option to work if used with the 'S' option. (issue #9888 reported by gasparz)
Modified:
branches/1.2/apps/app_dial.c
Modified: branches/1.2/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_dial.c?view=diff&rev=68070&r1=68069&r2=68070
==============================================================================
--- branches/1.2/apps/app_dial.c (original)
+++ branches/1.2/apps/app_dial.c Thu Jun 7 09:19:40 2007
@@ -1660,8 +1660,11 @@
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);
More information about the asterisk-commits
mailing list