tags
This commit is contained in:
parent
1b59d40485
commit
493dd3832b
@ -1,3 +1,4 @@
|
||||
$Amigan: phoned/COPYRIGHT,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
|
||||
This is the phoned distribution.
|
||||
|
||||
Copyright (C) 2005, Dan Ponte. All rights reserved.
|
||||
|
1
Makefile
1
Makefile
@ -1,4 +1,5 @@
|
||||
# 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.
|
||||
# BSD Make > *
|
||||
APPS=cnd phoned
|
||||
|
1
README
1
README
@ -1,3 +1,4 @@
|
||||
$Amigan: phoned/README,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
|
||||
+=======================================+
|
||||
| phoned |
|
||||
| (C)2005, Dan Ponte |
|
||||
|
@ -1,4 +1,5 @@
|
||||
# cnd Makefile
|
||||
# $Amigan: phoned/cnd/Makefile,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
|
||||
# (C)2005, Dan Ponte
|
||||
include ../global.mk
|
||||
# basic stuff. we append for a reason.
|
||||
|
@ -5,6 +5,7 @@
|
||||
* Excerpted from the original cidserv distribution. Modified to work
|
||||
* with phoned.
|
||||
*/
|
||||
/* $Amigan: phoned/cnd/cnd.c,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $ */
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
#include <unistd.h>
|
||||
@ -29,7 +30,7 @@
|
||||
#define ADDRS "/usr/local/etc/cidserv.conf"
|
||||
int nhosts = 0;
|
||||
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 load_addrs(const char* fl);
|
||||
int parse_cid(char* tty, char* phone, char* name, int dist_r, char* called);
|
||||
|
@ -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 **
|
||||
** (C)2005, Dan Ponte **
|
||||
@ -5,36 +6,21 @@
|
||||
1.0 Introduction
|
||||
phoned is [supposed to be] a powerful phone answering system, much like
|
||||
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:
|
||||
*phoned - the main daemon responsible for logging stuff and talking to
|
||||
clients
|
||||
*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)
|
||||
clients and the modem
|
||||
*xfone - a Tcl/Tk application for checking messages and administering
|
||||
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
|
||||
In order to use the base phoned and phonecall, you must have at least the
|
||||
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
|
||||
better OS. It might run on OSX.)
|
||||
*Perl (tested on 5.8.6)
|
||||
*The Modem::Vgetty Perl module, available from CPAN
|
||||
*A properly installed and configured vgetty
|
||||
*A voice modem supported by vgetty. Tested with the Diamond SupraExpress 56i
|
||||
*Perl (tested on 5.8.6) (dunno why, just have it)
|
||||
*A voice modem supported by us. Tested with the Diamond SupraExpress 56i
|
||||
Sp (Rockwell chipset/driver)
|
||||
*Telephone service
|
||||
*A telephone, mic, or other recording device to record the greeting messages
|
||||
|
@ -1,3 +1,4 @@
|
||||
# global stuff
|
||||
# $Amigan: phoned/global.mk,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
|
||||
CC=cc
|
||||
PREFIX=/usr/local
|
||||
|
@ -3,6 +3,7 @@
|
||||
* (C)2005, Dan Ponte
|
||||
* BSDL w/ advert.
|
||||
*/
|
||||
/* $Amigan: phoned/include/phoned.h,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $ */
|
||||
#define VERSION "0.1"
|
||||
#define LOGFILE "/var/log/phoned.log"
|
||||
#define SOCKETFILE "/tmp/phoned.sock"
|
||||
|
1
main.mk
1
main.mk
@ -1,3 +1,4 @@
|
||||
# $Amigan: phoned/main.mk,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
|
||||
all: .depend ${MAINBIN}
|
||||
# I know, I know, but it's good.
|
||||
.depend: ${SRCS} ${OHDRS}
|
||||
|
@ -1,5 +1,6 @@
|
||||
# cnd Makefile
|
||||
# (C)2005, Dan Ponte
|
||||
# $Amigan: phoned/phonectl/Makefile,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
|
||||
include ../global.mk
|
||||
# basic stuff. we append for a reason.
|
||||
CPPFLAGS=-I../include
|
||||
|
@ -27,6 +27,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
/* $Amigan: phoned/phonectl/phonectl.c,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $ */
|
||||
/* system includes */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -1,5 +1,6 @@
|
||||
# cnd Makefile
|
||||
# (C)2005, Dan Ponte
|
||||
# $Amigan: phoned/phoned/Makefile,v 1.2 2005/06/01 00:43:07 dcp1990 Exp $
|
||||
include ../global.mk
|
||||
# basic stuff. we append for a reason.
|
||||
CPPFLAGS=-I../include -DDEBUG
|
||||
|
@ -2,6 +2,7 @@
|
||||
* FUCK....lex overwrote this :-(
|
||||
* (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 <string.h>
|
||||
#include <phoned.h>
|
||||
|
Loading…
Reference in New Issue
Block a user