From 49def237a3a388c1fc97f883883a0922d3c67504 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 2 Sep 2008 15:09:20 +0000 Subject: I'm not sure how these files got to trunk (probably my fault), but they should not be here git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@140563 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/ais/amf.c | 89 ----------------------------------------------------------- 1 file changed, 89 deletions(-) delete mode 100644 res/ais/amf.c (limited to 'res/ais/amf.c') diff --git a/res/ais/amf.c b/res/ais/amf.c deleted file mode 100644 index fec9af6e0..000000000 --- a/res/ais/amf.c +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Asterisk -- An open source telephony toolkit. - * - * Copyright (C) 2007, Digium, Inc. - * - * Russell Bryant - * - * 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 - * \author Russell Bryant - * - * \brief Usage of the SAForum AIS (Application Interface Specification) - * - * \arg http://www.openais.org/ - * - * This file contains the code specific to the use of the AMF (Application - * Management Framework). - */ - -#include "asterisk.h" - -ASTERISK_FILE_VERSION(__FILE__, "$Revision$"); - -#include -#include -#include -#include -#include - -#include "ais.h" - -#include "asterisk/module.h" -#include "asterisk/utils.h" -#include "asterisk/cli.h" -#include "asterisk/logger.h" - -SaAmfHandleT amf_handle; - -static const SaAmfCallbacksT amf_callbacks = { - .saAmfHealthcheckCallback = NULL, - .saAmfComponentTerminateCallback = NULL, - .saAmfCSISetCallback = NULL, - .saAmfProtectionGroupTrackCallback = NULL, -#if 0 - /*! XXX \todo These appear to be define in the B.02.01 spec, but this won't - * compile with them in there. Look into it some more ... */ - .saAmfProxiedComponentInstantiateCallback = NULL, - .saAmfProxiedComponentCleanupCallback = NULL, -#endif -}; - -int ast_ais_amf_load_module(void) -{ - SaAisErrorT ais_res; - - ais_res = saAmfInitialize(&amf_handle, &amf_callbacks, &ais_version); - if (ais_res != SA_AIS_OK) { - ast_log(LOG_ERROR, "Could not initialize AMF: %s\n", - ais_err2str(ais_res)); - return -1; - } - - return 0; -} - -int ast_ais_amf_unload_module(void) -{ - SaAisErrorT ais_res; - - ais_res = saAmfFinalize(amf_handle); - if (ais_res != SA_AIS_OK) { - ast_log(LOG_ERROR, "Problem stopping AMF: %s\n", - ais_err2str(ais_res)); - return -1; - } - - return 0; -} -- cgit v1.2.3