[asterisk-commits] trunk r21566 - /trunk/apps/app_dial.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Apr 19 10:29:17 MST 2006
Author: rizzo
Date: Wed Apr 19 12:29:15 2006
New Revision: 21566
URL: http://svn.digium.com/view/asterisk?rev=21566&view=rev
Log:
merge two nested 'if' which are really a single block.
(indentation still to be fixed)
Modified:
trunk/apps/app_dial.c
Modified: trunk/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dial.c?rev=21566&r1=21565&r2=21566&view=diff
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Wed Apr 19 12:29:15 2006
@@ -1157,10 +1157,9 @@
ast_log(LOG_DEBUG, "app_dial: sendurl=%s.\n", args.url);
ast_channel_sendurl( peer, args.url );
}
- if (ast_test_flag(&opts, OPT_PRIVACY) || ast_test_flag(&opts, OPT_SCREENING)) {
- int res2;
- int loopcount = 0;
- if( privdb_val == AST_PRIVACY_UNKNOWN ) {
+ if ( (ast_test_flag(&opts, OPT_PRIVACY) || ast_test_flag(&opts, OPT_SCREENING)) && privdb_val == AST_PRIVACY_UNKNOWN) {
+ int res2;
+ int loopcount = 0;
/* Get the user's intro, store it in priv-callerintros/$CID,
unless it is already there-- this should be done before the
@@ -1340,7 +1339,6 @@
else if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Successfully deleted %s intro file\n", privintro);
}
- }
}
if (!ast_test_flag(&opts, OPT_ANNOUNCE) || ast_strlen_zero(opt_args[OPT_ARG_ANNOUNCE])) {
res = 0;
More information about the asterisk-commits
mailing list