Added RCS keywords and GPL notice.

This commit is contained in:
fritz 1998-10-23 12:50:44 +00:00
parent 172e405496
commit d3e9f8e529
19 changed files with 396 additions and 14 deletions

View File

@ -1,10 +1,29 @@
/*
/* $Id: c20msg.c,v 1.2 1998/10/23 12:50:44 fritz Exp $
*
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Decode_Info: Returns a string with an error description
* Note: infos with values of 0x00xx are only warnings and the corresponding
* messages have been processed.
* The description for all info values but 0x34xx is taken from the CAPI 2.0
* specification february 1994.
* The description for the 0x34xx values is taken from ETS 300 102-1/Q.931
*
* $Log: c20msg.c,v $
* Revision 1.2 1998/10/23 12:50:44 fritz
* Added RCS keywords and GPL notice.
*
*/
char *Decode_Info (unsigned int Info) {
switch (Info) {

View File

@ -1,14 +1,33 @@
#ifndef _c20msg_h_
#define _c20msg_h_
/*
/* $Id: c20msg.h,v 1.2 1998/10/23 12:50:45 fritz Exp $
*
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Decode_Info: Returns a string with an error description
* Note: infos with values of 0x00xx are only warnings and the corresponding
* messages have been processed.
* The description for all info values but 0x34xx is taken from the CAPI 2.0
* specification february 1994.
* The description for the 0x34xx values is taken from ETS 300 102-1/Q.931
*
* $Log: c20msg.h,v $
* Revision 1.2 1998/10/23 12:50:45 fritz
* Added RCS keywords and GPL notice.
*
*/
#ifndef _c20msg_h_
#define _c20msg_h_
char *Decode_Info(unsigned int Info);
/*

View File

@ -1,9 +1,25 @@
/*
/* $Id: capi.c,v 1.2 1998/10/23 12:50:46 fritz Exp $
*
* Implementation of CAPI state machine
*
* Based heavily on
* CAPI.C Version 1.1 by AVM
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: capi.c,v $
* Revision 1.2 1998/10/23 12:50:46 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <stdio.h>
#include <sys/time.h>

View File

@ -1,3 +1,23 @@
/* $Id: capi.h,v 1.2 1998/10/23 12:50:47 fritz Exp $
*
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: capi.h,v $
* Revision 1.2 1998/10/23 12:50:47 fritz
* Added RCS keywords and GPL notice.
*
*/
#ifndef _capi_h_
#define _capi_h_

View File

@ -1,3 +1,24 @@
/* $Id: capifax.c,v 1.2 1998/10/23 12:50:47 fritz Exp $
*
* A FAX send application for CAPI.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: capifax.c,v $
* Revision 1.2 1998/10/23 12:50:47 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -1,3 +1,24 @@
/* $Id: capifaxrcvd.c,v 1.2 1998/10/23 12:50:48 fritz Exp $
*
* A FAX receive daemon for CAPI.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: capifaxrcvd.c,v $
* Revision 1.2 1998/10/23 12:50:48 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -1,10 +1,24 @@
/*--------------------------------------------------------------------------*\
CONNECT.C Version 1.1 1995 AVM
Functions concerning activation and deactivation of connections
\*--------------------------------------------------------------------------*/
/* $Id: connect.c,v 1.2 1998/10/23 12:50:49 fritz Exp $
*
* Functions concerning activation and deactivation of connections
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: connect.c,v $
* Revision 1.2 1998/10/23 12:50:49 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <stdio.h>
#include <malloc.h>
#include <assert.h>

View File

@ -1,3 +1,24 @@
/* $Id: connect.h,v 1.2 1998/10/23 12:50:50 fritz Exp $
*
* Functions concerning activation and deactivation of connections
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: connect.h,v $
* Revision 1.2 1998/10/23 12:50:50 fritz
* Added RCS keywords and GPL notice.
*
*/
#ifndef _connect_h_
#define _connect_h_

View File

@ -1,3 +1,24 @@
/* $Id: contr.c,v 1.2 1998/10/23 12:50:51 fritz Exp $
*
* Functions for dealing with controllers.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: contr.c,v $
* Revision 1.2 1998/10/23 12:50:51 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <assert.h>
#include <sys/time.h>
#include <linux/capi.h>

View File

@ -1,3 +1,24 @@
/* $Id: contr.h,v 1.2 1998/10/23 12:50:52 fritz Exp $
*
* Functions for dealing with controllers.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: contr.h,v $
* Revision 1.2 1998/10/23 12:50:52 fritz
* Added RCS keywords and GPL notice.
*
*/
#ifndef _contr_h_
#define _contr_h_

View File

@ -1,3 +1,24 @@
/* $Id: data.c,v 1.2 1998/10/23 12:50:52 fritz Exp $
*
* Functions for dealing user data.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: data.c,v $
* Revision 1.2 1998/10/23 12:50:52 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <assert.h>
#include <sys/time.h>
#include <linux/capi.h>

View File

@ -1,3 +1,24 @@
/* $Id: data.h,v 1.2 1998/10/23 12:50:53 fritz Exp $
*
* Functions for dealing user data.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: data.h,v $
* Revision 1.2 1998/10/23 12:50:53 fritz
* Added RCS keywords and GPL notice.
*
*/
#ifndef _data_h_
#define _data_h_

View File

@ -1,9 +1,30 @@
/* $Id: fax.c,v 1.2 1998/10/23 12:50:54 fritz Exp $
*
* Setup B3 for FAX.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: fax.c,v $
* Revision 1.2 1998/10/23 12:50:54 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <string.h>
#include "fax.h"
char *stationID = "00000000";
char *headLine = "Unconfigured Cobalt FAXServer";
char *headLine = "Unconfigured Linux FAXServer";
void SetupB3Config(B3_PROTO_FAXG3 *B3conf, int FAX_Format) {
int len1;

View File

@ -1,3 +1,24 @@
/* $Id: fax.h,v 1.2 1998/10/23 12:50:54 fritz Exp $
*
* Setup B3 for FAX.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: fax.h,v $
* Revision 1.2 1998/10/23 12:50:54 fritz
* Added RCS keywords and GPL notice.
*
*/
#ifndef _fax_h_
#define _fax_h_

View File

@ -1,3 +1,24 @@
/* $Id: id.c,v 1.2 1998/10/23 12:50:55 fritz Exp $
*
* Connection-ID management.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: id.c,v $
* Revision 1.2 1998/10/23 12:50:55 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <assert.h>
#include <malloc.h>
#include <string.h>

View File

@ -1,3 +1,24 @@
/* $Id: id.h,v 1.2 1998/10/23 12:50:56 fritz Exp $
*
* Connection-ID management.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: id.h,v $
* Revision 1.2 1998/10/23 12:50:56 fritz
* Added RCS keywords and GPL notice.
*
*/
#ifndef _id_h_
#define _id_h_

View File

@ -1,3 +1,24 @@
/* $Id: init.c,v 1.2 1998/10/23 12:50:57 fritz Exp $
*
* CAPI registration/deregistration.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: init.c,v $
* Revision 1.2 1998/10/23 12:50:57 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <stdio.h>
#include <malloc.h>
#include <sys/time.h>

View File

@ -1,3 +1,24 @@
/* $Id: init.h,v 1.2 1998/10/23 12:50:58 fritz Exp $
*
* CAPI registration/deregistration.
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: init.h,v $
* Revision 1.2 1998/10/23 12:50:58 fritz
* Added RCS keywords and GPL notice.
*
*/
#ifndef _init_h_
#define _init_h_

View File

@ -1,3 +1,24 @@
/* $Id: msg.c,v 1.2 1998/10/23 12:50:58 fritz Exp $
*
* CAPI message logging (mainly for debugging).
* This stuff is based heavily on AVM's CAPI-adk for linux.
*
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option)
* any later version.
* * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: msg.c,v $
* Revision 1.2 1998/10/23 12:50:58 fritz
* Added RCS keywords and GPL notice.
*
*/
#include <assert.h>
#include <string.h>
#include <stdio.h>