diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-01-30 15:03:20 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-01-30 15:03:20 +0000 |
commit | a8282b50e1826df08d77e3989b637814415b5865 (patch) | |
tree | 03c27ab3cc019e3323dea0a3464f071a18fa1d18 /apps/app_qcall.c | |
parent | 3e152dc0f17e3948a6d3945f203f62060f987c17 (diff) |
Version 0.3.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@593 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_qcall.c')
-rwxr-xr-x | apps/app_qcall.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_qcall.c b/apps/app_qcall.c index 5a1df9726..a68239abc 100755 --- a/apps/app_qcall.c +++ b/apps/app_qcall.c @@ -71,8 +71,9 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/file.h> +#include "../astconf.h" -const char *qdir="/var/spool/asterisk/qcall"; +char qdir[255]; static char *tdesc = "Call from Queue"; static pthread_t qcall_thread; static int debug = 0; @@ -132,7 +133,7 @@ pthread_attr_t attr; /* if not a regular file, skip it */ if ((mystat.st_mode & S_IFMT) != S_IFREG) continue; /* if not yet .... */ - if (mystat.st_atime == mystat.st_ctime) + if (mystat.st_atime == mystat.st_mtime) { /* first time */ if ((mystat.st_atime + INITIALONE) > t) continue; @@ -361,6 +362,7 @@ int unload_module(void) int load_module(void) { + snprintf((char *)qdir,sizeof(qdir)-1,"%s/%s",(char *)ast_config_AST_SPOOL_DIR,"qcall"); mkdir(qdir,0660); pthread_create(&qcall_thread,NULL,qcall,NULL); return 0; |