#include <sys/signal.h>
#include <iksemel.h>
+#include <gcrypt.h>
+#include <pthread.h>
+GCRY_THREAD_OPTION_PTHREAD_IMPL;
+
#include "asterisk/lock.h"
#include "asterisk/channel.h"
#include "asterisk/config.h"
/*! \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);