[asterisk-commits] mnicholson: branch group/res_fax r235331 - /team/group/res_fax/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 16 09:48:02 CST 2009


Author: mnicholson
Date: Wed Dec 16 09:47:59 2009
New Revision: 235331

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=235331
Log:
Initial res_fax_spandsp module skelton.

Added:
    team/group/res_fax/res/res_fax_spandsp.c   (with props)

Added: team/group/res_fax/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/res_fax/res/res_fax_spandsp.c?view=auto&rev=235331
==============================================================================
--- team/group/res_fax/res/res_fax_spandsp.c (added)
+++ team/group/res_fax/res/res_fax_spandsp.c Wed Dec 16 09:47:59 2009
@@ -1,0 +1,73 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 2009, Digium, Inc.
+ *
+ * Matthew Nicholson <mnicholson at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*! \file
+ *
+ * \brief Spandsp T.38 and G.711 FAX Resource
+ *
+ * \author Matthew Nicholson <mnicholson at digium.com>
+ *
+ * This module registers the Spandsp FAX technology with the res_fax module.
+ */
+
+/*** MODULEINFO
+		<depend>spandsp</depend>
+***/
+
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+#include <spandsp.h>
+#include <spandsp/version.h>
+
+#include "asterisk/io.h"
+#include "asterisk/file.h"
+#include "asterisk/logger.h"
+#include "asterisk/module.h"
+#include "asterisk/app.h"
+#include "asterisk/lock.h"
+#include "asterisk/options.h"
+#include "asterisk/strings.h"
+#include "asterisk/cli.h"
+#include "asterisk/utils.h"
+#include "asterisk/config.h"
+#include "asterisk/channel.h"
+#include "asterisk/res_fax.h"
+
+
+/*! \brief unload res_fax_spandsp */
+static int unload_module(void)
+{
+	return AST_MODULE_LOAD_SUCCESS;
+}
+
+/*! \brief load res_fax_spandsp */
+static int load_module(void)
+{
+	/* prevent logging to stderr */
+	span_set_message_handler(NULL);
+
+	return AST_MODULE_LOAD_SUCCESS;
+}
+
+
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "Spandsp G.711 and T.38 FAX Technologies",
+		.load = load_module,
+		.unload = unload_module,
+	       );

Propchange: team/group/res_fax/res/res_fax_spandsp.c
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/group/res_fax/res/res_fax_spandsp.c
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/group/res_fax/res/res_fax_spandsp.c
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list