Merged revisions 309448 via svnmerge from
authorMatthew Nicholson <mnicholson@digium.com>
Fri, 4 Mar 2011 16:00:05 +0000 (16:00 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Fri, 4 Mar 2011 16:00:05 +0000 (16:00 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r309448 | mnicholson | 2011-03-04 09:59:25 -0600 (Fri, 04 Mar 2011) | 8 lines

  Export global symbols from pbx_lua to allow modules to be loaded.  Fixes a regression introduced in r278132.

  (closes issue #18671)
  Reported by: Igels
  Patches:
        pbx_lua_global_symbols1.diff uploaded by mnicholson (license 96)
  Tested by: Igels
........

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

pbx/pbx_lua.c

index c37dba6..5d4ecd7 100644 (file)
@@ -1467,7 +1467,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,