aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-28 21:32:48 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-28 21:32:48 +0000
commit9cb49092c8c33011580b1fee644a96bd57fd72b4 (patch)
treeccb01541f202b4ff5fa2699daa4ac2d97f68aadf /pbx
parent960b12736d958ee09d603c2ed7a16d9309e709e0 (diff)
Various minor cleanups (bug #931)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2087 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/pbx_spool.c3
-rwxr-xr-xpbx/pbx_wilcalu.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index 638dea640..d456810bb 100755
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -339,8 +339,7 @@ int load_module(void)
pthread_t thread;
pthread_attr_t attr;
snprintf((char *)qdir,sizeof(qdir)-1,"%s/%s",(char *)ast_config_AST_SPOOL_DIR,"outgoing");
-printf("%s\n",qdir);
- if (mkdir(qdir, 0700) && (errno != EEXIST)) {
+ if (mkdir(qdir, 0700) && (errno != EEXIST)) {
ast_log(LOG_WARNING, "Unable to create queue directory %s -- outgoing spool disabled\n", qdir);
return 0;
}
diff --git a/pbx/pbx_wilcalu.c b/pbx/pbx_wilcalu.c
index aa1d4e9ae..9fdf642be 100755
--- a/pbx/pbx_wilcalu.c
+++ b/pbx/pbx_wilcalu.c
@@ -24,6 +24,7 @@
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
+#include <asterisk/options.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
@@ -62,7 +63,8 @@ static void *autodial(void *ignore)
int flags = fcntl(fd, F_GETFL);
fd_set fds;
fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
- ast_log(LOG_DEBUG, "Entered Wil-Calu fd=%d\n",fd);
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Entered Wil-Calu fd=%d\n",fd);
if(fd<0) {
ast_log(LOG_WARNING, "Autodial: Unable to open file\n");
pthread_exit(NULL);