mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Copy voicemail dependency logic for res_adsi to chan_gtalk (for jabber).
(closes issue #12014) Reported by: junky git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@107714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1878,6 +1878,13 @@ static int gtalk_load_config(void)
|
||||
/*! \brief Load module into PBX, register channel */
|
||||
static int load_module(void)
|
||||
{
|
||||
char *jabber_loaded = ast_module_helper("", "res_jabber.so", 0, 0, 0, 0);
|
||||
free(jabber_loaded);
|
||||
if (!jabber_loaded) {
|
||||
ast_log(LOG_ERROR, "chan_gtalk.so depends upon res_jabber.so\n");
|
||||
return AST_MODULE_LOAD_DECLINE;
|
||||
}
|
||||
|
||||
#ifdef HAVE_GNUTLS
|
||||
gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
|
||||
#endif /* HAVE_GNUTLS */
|
||||
|
Reference in New Issue
Block a user