Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Fix error loading res_monitor.
Browse files Browse the repository at this point in the history
For some odd reason, loading app_mixmonitor was fine, but res_monitor was not.
This patch fixes a set of issues related to func_periodic_hook exporting the
beep functions that gets res_monitor working again.



git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@412910 f38db490-d61c-443f-a65b-d21fe96a405b
  • Loading branch information
russellb committed Apr 23, 2014
1 parent aaef7d3 commit d5e46c4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion funcs/func_periodic_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,4 +520,7 @@ int AST_OPTIONAL_API_NAME(ast_beep_stop)(struct ast_channel *chan, const char *b
return hook_write(chan, NULL, (char *) beep_id, "off");
}

AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Periodic dialplan hooks.");
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS, "Periodic dialplan hooks.",
.load = load_module,
.unload = unload_module,
);
7 changes: 7 additions & 0 deletions funcs/func_periodic_hook.exports.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
global:
LINKER_SYMBOL_PREFIX*ast_beep_start;
LINKER_SYMBOL_PREFIX*ast_beep_stop;
local:
*;
};
1 change: 1 addition & 0 deletions main/asterisk.dynamics
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
*ast_adsi_*;
*ast_agi_*;
*ast_beep_*;
*ast_pktccops_*;
*ast_smdi_*;
*ast_monitor_*;
Expand Down
1 change: 1 addition & 0 deletions res/res_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/stasis_channels.h"
#define AST_API_MODULE
#include "asterisk/monitor.h"
#undef AST_API_MODULE
#include "asterisk/app.h"
#include "asterisk/utils.h"
#include "asterisk/config.h"
Expand Down

0 comments on commit d5e46c4

Please sign in to comment.