(closes issue #12014)
Reported by: junky
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@107714
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
/*! \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 */