diff options
author | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-04-27 16:42:43 +0000 |
---|---|---|
committer | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-04-27 16:42:43 +0000 |
commit | 5897660860459018e08d2b3416a6087147515996 (patch) | |
tree | 3192ce907de41537f8a32ec8a6ce7b5e3a069f0f /apps | |
parent | 4ea8b09a2a0fdd5e73b1083bbef816eefd269a2a (diff) |
Bug Fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2784 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_dial.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 3492c1004..10017e687 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -518,12 +518,22 @@ static int dial_exec(struct ast_channel *chan, void *data) warning_sound=NULL; } calldurationlimit=0; /* undo effect of S(x) in case they are both used */ - if(! play_warning && ! start_sound && ! end_sound && timelimit) { /* more efficient do it like S(x) does since no advanced opts*/ - calldurationlimit=timelimit/1000; - timelimit=play_to_caller=play_to_callee=play_warning=warning_freq=0; - } - else - ast_verbose(VERBOSE_PREFIX_3"Limit Data: timelimit=%ld\n -- play_warning=%ld\n -- play_to_caller=%s\n -- play_to_callee=%s\n -- warning_freq=%ld\n -- warning_sound=%s\n -- end_sound=%s\n -- start_sound=%s\n",timelimit,play_warning,play_to_caller ? "yes" : "no",play_to_callee ? "yes" : "no",warning_freq,warning_sound ? warning_sound : "UNDEF",end_sound ? end_sound : "UNDEF",start_sound ? start_sound : "UNDEF"); + /* more efficient do it like S(x) does since no advanced opts*/ + if(! play_warning && ! start_sound && ! end_sound && timelimit) { + calldurationlimit=timelimit/1000; + timelimit=play_to_caller=play_to_callee=play_warning=warning_freq=0; + } + else { + ast_verbose(VERBOSE_PREFIX_3"Limit Data:\n"); + ast_verbose(VERBOSE_PREFIX_3"timelimit=%ld\n",timelimit); + ast_verbose(VERBOSE_PREFIX_3"play_warning=%ld\n",play_warning); + ast_verbose(VERBOSE_PREFIX_3"play_to_caller=%s\n",play_to_caller ? "yes" : "no"); + ast_verbose(VERBOSE_PREFIX_3"play_to_callee=%s\n",play_to_callee ? "yes" : "no"); + ast_verbose(VERBOSE_PREFIX_3"warning_freq=%ld\n",warning_freq); + ast_verbose(VERBOSE_PREFIX_3"start_sound=%s\n",start_sound ? start_sound : "UNDEF"); + ast_verbose(VERBOSE_PREFIX_3"warning_sound=%s\n",warning_sound ? warning_sound : "UNDEF"); + ast_verbose(VERBOSE_PREFIX_3"end_sound=%s\n",end_sound ? end_sound : "UNDEF"); + } } |