mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 18:13:45 +00:00
Version 0.3.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -31,10 +31,11 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include "../astconf.h"
|
||||
|
||||
|
||||
// Globals
|
||||
const char *dialfile="/var/run/autodial.ctl";
|
||||
const char dialfile[255];
|
||||
static char *tdesc = "Wil Cal U (Auto Dialer)";
|
||||
static pthread_t autodialer_thread;
|
||||
static char buf[257];
|
||||
@@ -245,6 +246,7 @@ int unload_module(void)
|
||||
int load_module(void)
|
||||
{
|
||||
int val;
|
||||
snprintf((char *)dialfile,sizeof(dialfile)-1,"%s/%s",(char *)ast_config_AST_RUN_DIR,"autodial.ctl");
|
||||
if((val=mkfifo(dialfile, 0700))){
|
||||
if(errno!=EEXIST){
|
||||
printf("Error:%d Creating Autodial FIFO\n",errno);
|
||||
|
||||
Reference in New Issue
Block a user