diff options
author | Olle Johansson <oej@edvina.net> | 2006-10-30 21:48:41 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2006-10-30 21:48:41 +0000 |
commit | 11d00cac1575d41b955d8c6e7a651830deafdf2b (patch) | |
tree | 55bf4b5c1c9abf5a43863e3f5bb7fbf100ff7759 /include | |
parent | 79e45105f564c0817eaeb6dc86ff4e840fbb7b38 (diff) |
Adding dialplan function IFMODULE, so you can create dialplans that handle
various PBX installations and checks if a module is loaded before using
it.
example IFMODULE(chan_sip3.so)
issue #6671 in the bug tracker, finally gone. Thanks to mithraen for keeping
it updated.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/module.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 1d00f4504..9d51488d1 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -113,6 +113,13 @@ void ast_update_use_count(void); int ast_update_module_list(int (*modentry)(const char *module, const char *description, int usecnt, const char *like), const char *like); +/*! + * \brief Check if module with the name given is loaded + * \param name Module name, like "chan_sip.so" + * \return 0 if false, 1 if true + */ +int ast_module_check(char *name); + /*! * \brief Add a procedure to be run when modules have been updated. * \param updater The function to run when modules have been updated. |