aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_disa.c
diff options
context:
space:
mode:
authormvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-09 11:27:10 +0000
committermvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-09 11:27:10 +0000
commit54bf9542cd4ad93f537a2ab1c4e868758611f870 (patch)
treee41e80e4e3a91bbae96d141e8300a25335865986 /apps/app_disa.c
parent51bdb710842c6220ba16de1fec8ce38bb5ecef13 (diff)
whitespace fixes only.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103249 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_disa.c')
-rw-r--r--apps/app_disa.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c
index ac74c78a4..654cb6c8d 100644
--- a/apps/app_disa.c
+++ b/apps/app_disa.c
@@ -22,10 +22,10 @@
* \brief DISA -- Direct Inward System Access Application
*
* \author Jim Dixon <jim@lambdatel.com>
- *
+ *
* \ingroup applications
*/
-
+
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
@@ -49,7 +49,7 @@ static char *app = "DISA";
static char *synopsis = "DISA (Direct Inward System Access)";
-static char *descrip =
+static char *descrip =
"DISA(<numeric passcode>[,<context>[,<cid>[,mailbox[,options]]]]) or\n"
"DISA(<filename>[,,,,options])\n"
"The DISA, Direct Inward System Access, application allows someone from \n"
@@ -138,7 +138,7 @@ static int disa_exec(struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "DISA requires an argument (passcode/passcode file)\n");
return -1;
}
-
+
ast_debug(1, "Digittimeout: %d\n", digittimeout);
ast_debug(1, "Responsetimeout: %d\n", firstdigittimeout);
@@ -146,8 +146,8 @@ static int disa_exec(struct ast_channel *chan, void *data)
AST_STANDARD_APP_ARGS(args, tmp);
- if (ast_strlen_zero(args.context))
- args.context = "disa";
+ if (ast_strlen_zero(args.context))
+ args.context = "disa";
if (ast_strlen_zero(args.mailbox))
args.mailbox = "";
if (!ast_strlen_zero(args.options))
@@ -180,10 +180,10 @@ static int disa_exec(struct ast_channel *chan, void *data)
/* if outa time, give em reorder */
if (ast_tvdiff_ms(ast_tvnow(), lastdigittime) > ((k&2) ? digittimeout : firstdigittimeout)) {
ast_debug(1,"DISA %s entry timeout on chan %s\n",
- ((k&1) ? "extension" : "password"),chan->name);
+ ((k&1) ? "extension" : "password"),chan->name);
break;
}
-
+
if ((res = ast_waitfor(chan, -1) < 0)) {
ast_debug(1, "Waitfor returned %d\n", res);
continue;
@@ -210,7 +210,7 @@ static int disa_exec(struct ast_channel *chan, void *data)
ast_frfree(f);
if (!i) {
- k |= 2; /* We have the first digit */
+ k |= 2; /* We have the first digit */
ast_playtones_stop(chan);
}
@@ -232,7 +232,7 @@ static int disa_exec(struct ast_channel *chan, void *data)
while(fgets(pwline,sizeof(pwline) - 1,fp)) {
if (!pwline[0])
continue;
- if (pwline[strlen(pwline) - 1] == '\n')
+ if (pwline[strlen(pwline) - 1] == '\n')
pwline[strlen(pwline) - 1] = 0;
if (!pwline[0])
continue;
@@ -243,7 +243,7 @@ static int disa_exec(struct ast_channel *chan, void *data)
continue;
AST_STANDARD_APP_ARGS(args, pwline);
-
+
ast_debug(1, "Mailbox: %s\n",args.mailbox);
/* password must be in valid format (numeric) */