Index: channels/chan_gtalk.c =================================================================== --- channels/chan_gtalk.c (revision 63181) +++ channels/chan_gtalk.c (working copy) @@ -48,6 +48,10 @@ #include #include +#include +#include +GCRY_THREAD_OPTION_PTHREAD_IMPL; + #include "asterisk/lock.h" #include "asterisk/channel.h" #include "asterisk/config.h" @@ -1773,6 +1777,8 @@ /*! \brief Load module into PBX, register channel */ static int load_module(void) { + gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); + ASTOBJ_CONTAINER_INIT(>alk_list); if (!gtalk_load_config()) { ast_log(LOG_ERROR, "Unable to read config file %s. Not loading module.\n", GOOGLE_CONFIG);