Load pbx_lua with global symbols to allow linking with other lua libraries.
authorMatthew Nicholson <mnicholson@digium.com>
Wed, 25 Nov 2009 15:42:48 +0000 (15:42 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Wed, 25 Nov 2009 15:42:48 +0000 (15:42 +0000)
Found by Maxim Litnitskiy.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@231189 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_lua.c

index 1d32760..2aac409 100644 (file)
@@ -1473,7 +1473,7 @@ static int load_module(void)
        return AST_MODULE_LOAD_SUCCESS;
 }
 
-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "Lua PBX Switch",
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS, "Lua PBX Switch",
                .load = load_module,
                .unload = unload_module,
                .reload = reload,