[asterisk-commits] qwell: branch 1.4 r107714 - /branches/1.4/channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 11 15:49:56 CDT 2008


Author: qwell
Date: Tue Mar 11 15:49:56 2008
New Revision: 107714

URL: http://svn.digium.com/view/asterisk?view=rev&rev=107714
Log:
Copy voicemail dependency logic for res_adsi to chan_gtalk (for jabber).

(closes issue #12014)
Reported by: junky

Modified:
    branches/1.4/channels/chan_gtalk.c

Modified: branches/1.4/channels/chan_gtalk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_gtalk.c?view=diff&rev=107714&r1=107713&r2=107714
==============================================================================
--- branches/1.4/channels/chan_gtalk.c (original)
+++ branches/1.4/channels/chan_gtalk.c Tue Mar 11 15:49:56 2008
@@ -1878,6 +1878,13 @@
 /*! \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 */




More information about the asterisk-commits mailing list