Exemplo n.º 1
0
static int load_module(void)
{
	int res = 0;
	stasis_app_ref();
	res |= ast_ari_add_handler(&bridges);
	return res;
}
Exemplo n.º 2
0
/*!
 * \ internal
 * Setup test fixture for invocation tests.
 */
static void *setup_invocation_test(void) {
	int r;
	invocation_count = 0;
	r = ast_ari_add_handler(&test_root);
	ast_assert(r == 0);
	return &invocation_count;
}
Exemplo n.º 3
0
static int load_module(void)
{
	int res = 0;


	res |= ast_ari_add_handler(&applications);
	if (res) {
		unload_module();
		return AST_MODULE_LOAD_DECLINE;
	}

	return AST_MODULE_LOAD_SUCCESS;
}
Exemplo n.º 4
0
static int load_module(void)
{
	int res = 0;

	CHECK_ARI_MODULE_LOADED();


	stasis_app_ref();
	res |= ast_ari_add_handler(&recordings);
	if (res) {
		unload_module();
		return AST_MODULE_LOAD_DECLINE;
	}

	return AST_MODULE_LOAD_SUCCESS;
}