This commit is contained in:
dcp1990 2005-06-01 00:43:07 +00:00
parent 1b59d40485
commit 493dd3832b
13 changed files with 18 additions and 20 deletions

View file

@ -1,3 +1,4 @@
$Amigan: phoned/COPYRIGHT,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
This is the phoned distribution. This is the phoned distribution.
Copyright (C) 2005, Dan Ponte. All rights reserved. Copyright (C) 2005, Dan Ponte. All rights reserved.

View file

@ -1,4 +1,5 @@
# main makefile... # main makefile...
# $Amigan: phoned/Makefile,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
# Oh My Fucking God, this is such a big, unportable mess. Oh well. # Oh My Fucking God, this is such a big, unportable mess. Oh well.
# BSD Make > * # BSD Make > *
APPS=cnd phoned APPS=cnd phoned

1
README
View file

@ -1,3 +1,4 @@
$Amigan: phoned/README,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
+=======================================+ +=======================================+
| phoned | | phoned |
| (C)2005, Dan Ponte | | (C)2005, Dan Ponte |

View file

@ -1,4 +1,5 @@
# cnd Makefile # cnd Makefile
# $Amigan: phoned/cnd/Makefile,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
# (C)2005, Dan Ponte # (C)2005, Dan Ponte
include ../global.mk include ../global.mk
# basic stuff. we append for a reason. # basic stuff. we append for a reason.

View file

@ -5,6 +5,7 @@
* Excerpted from the original cidserv distribution. Modified to work * Excerpted from the original cidserv distribution. Modified to work
* with phoned. * with phoned.
*/ */
/* $Amigan: phoned/cnd/cnd.c,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $ */
#include <fcntl.h> #include <fcntl.h>
#include <ctype.h> #include <ctype.h>
#include <unistd.h> #include <unistd.h>
@ -29,7 +30,7 @@
#define ADDRS "/usr/local/etc/cidserv.conf" #define ADDRS "/usr/local/etc/cidserv.conf"
int nhosts = 0; int nhosts = 0;
char hosts[10][18]; char hosts[10][18];
static const char rcsid[] = "$Amigan: phoned/cnd/cnd.c,v 1.1 2005/06/01 00:37:22 dcp1990 Exp $"; static const char rcsid[] = "$Amigan: phoned/cnd/cnd.c,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $";
void send_dgram(char* address, char* datar); void send_dgram(char* address, char* datar);
void load_addrs(const char* fl); void load_addrs(const char* fl);
int parse_cid(char* tty, char* phone, char* name, int dist_r, char* called); int parse_cid(char* tty, char* phone, char* name, int dist_r, char* called);

View file

@ -1,3 +1,4 @@
$Amigan: phoned/doc/install_guide.txt,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
************************************************************************** **************************************************************************
** phoned installation guide -- it's good ** ** phoned installation guide -- it's good **
** (C)2005, Dan Ponte ** ** (C)2005, Dan Ponte **
@ -5,36 +6,21 @@
1.0 Introduction 1.0 Introduction
phoned is [supposed to be] a powerful phone answering system, much like phoned is [supposed to be] a powerful phone answering system, much like
VOCP. However, it is more-client-server based. VOCP. However, it is more-client-server based.
Its power stems from the use of vgetty, part of the mgetty+sendfax
distribution. It is available at:
http://alpha.greenie.net/mgetty/
mgetty+sendfax is also available under FreeBSD ports as comms/mgetty+sendfax/.
I will not cover the installation and configuration of mgetty/vgetty here.
There are many good docs on the process.
The phoned distribution consists of the following: The phoned distribution consists of the following:
*phoned - the main daemon responsible for logging stuff and talking to *phoned - the main daemon responsible for logging stuff and talking to
clients clients and the modem
*phonecall - a Perl script called by vgetty when it answers the phone,
responsible for talking to phoned and telling vgetty what to do (play sound
files, interpret menu options, etc)
*xfone - a Tcl/Tk application for checking messages and administering *xfone - a Tcl/Tk application for checking messages and administering
mailboxes mailboxes
*cnd - called by vgetty when the phone rings to tell phoned to log the call,
alert network users and either reject or accept the call based on the
caller. (based on a tiny bit of code from my old cidserv application, it is
compatible with its clients.)
2.0 Requirements 2.0 Requirements
In order to use the base phoned and phonecall, you must have at least the In order to use the base phoned and phonecall, you must have at least the
following: following:
*A Unix system capable of running perl, vgetty, and using sockets *A Unix system capable of using sockets and talking to a modem
(tested on FreeBSD) (the phoned suite will NOT run on windows. Get a (tested on FreeBSD) (the phoned suite will NOT run on windows. Get a
better OS. It might run on OSX.) better OS. It might run on OSX.)
*Perl (tested on 5.8.6) *Perl (tested on 5.8.6) (dunno why, just have it)
*The Modem::Vgetty Perl module, available from CPAN *A voice modem supported by us. Tested with the Diamond SupraExpress 56i
*A properly installed and configured vgetty
*A voice modem supported by vgetty. Tested with the Diamond SupraExpress 56i
Sp (Rockwell chipset/driver) Sp (Rockwell chipset/driver)
*Telephone service *Telephone service
*A telephone, mic, or other recording device to record the greeting messages *A telephone, mic, or other recording device to record the greeting messages

View file

@ -1,3 +1,4 @@
# global stuff # global stuff
# $Amigan: phoned/global.mk,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
CC=cc CC=cc
PREFIX=/usr/local PREFIX=/usr/local

View file

@ -3,6 +3,7 @@
* (C)2005, Dan Ponte * (C)2005, Dan Ponte
* BSDL w/ advert. * BSDL w/ advert.
*/ */
/* $Amigan: phoned/include/phoned.h,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $ */
#define VERSION "0.1" #define VERSION "0.1"
#define LOGFILE "/var/log/phoned.log" #define LOGFILE "/var/log/phoned.log"
#define SOCKETFILE "/tmp/phoned.sock" #define SOCKETFILE "/tmp/phoned.sock"

View file

@ -1,3 +1,4 @@
# $Amigan: phoned/main.mk,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
all: .depend ${MAINBIN} all: .depend ${MAINBIN}
# I know, I know, but it's good. # I know, I know, but it's good.
.depend: ${SRCS} ${OHDRS} .depend: ${SRCS} ${OHDRS}

View file

@ -1,5 +1,6 @@
# cnd Makefile # cnd Makefile
# (C)2005, Dan Ponte # (C)2005, Dan Ponte
# $Amigan: phoned/phonectl/Makefile,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
include ../global.mk include ../global.mk
# basic stuff. we append for a reason. # basic stuff. we append for a reason.
CPPFLAGS=-I../include CPPFLAGS=-I../include

View file

@ -27,6 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
/* $Amigan: phoned/phonectl/phonectl.c,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $ */
/* system includes */ /* system includes */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,5 +1,6 @@
# cnd Makefile # cnd Makefile
# (C)2005, Dan Ponte # (C)2005, Dan Ponte
# $Amigan: phoned/phoned/Makefile,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
include ../global.mk include ../global.mk
# basic stuff. we append for a reason. # basic stuff. we append for a reason.
CPPFLAGS=-I../include -DDEBUG CPPFLAGS=-I../include -DDEBUG

View file

@ -2,6 +2,7 @@
* FUCK....lex overwrote this :-( * FUCK....lex overwrote this :-(
* (C)2005, Dan Ponte...again. * (C)2005, Dan Ponte...again.
*/ */
/* $Amigan: phoned/phoned/cfg.c,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $ */
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <phoned.h> #include <phoned.h>