or you can have your script listen for event or check a variable and exit the script as needed. and another background script which will start the script again if it's not running. not a simple solution but doable. On 1/21/2013 1:52 PM, Michael Collins wrote:
Lua is not "unloadable" and therefore you cannot do this the way you are trying to. You'll need to restart FreeSWITCH. -MC
On Mon, Jan 21, 2013 at 9:43 AM, Mimiko <vbvbrj@gmail.com <mailto:vbvbrj@gmail.com>> wrote:
I want to reload mod_lua in order to reload lua scripts that a starte automatically on start-up. But I get this:
freeswitch@internal> reload mod_lua +OK Reloading XML -ERR unloading module [Module is not unloadable] -ERR loading module [Module already loaded]
[CRIT] switch_loadable_module.c:1451 Module is not unloadable. [WARNING] switch_loadable_module.c:1400 Module mod_lua Already Loaded! [INFO] mod_enum.c:872 ENUM Reloaded [INFO] switch_time.c:1165 Timezone reloaded 530 definitions
How to refresh modified lua scripts without reloading FS with restart? -- Mimiko desu.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org