Hi everyone, Would anyone have any ideas as to why the following statement would not work and end up assigning a null value to scripts_dir? scripts_dir = string.sub(debug.getinfo(1).source,2,string.len(debug.getinfo(1).source)-(st ring.len(argv[0])+1)); I'm pretty sure that this is related to a much larger problem that we're experiencing where MWI has stopped working completely on all extensions. We started experiencing intermittent problems with this after making recent updates to FS and FusionPBX before it stopped working entirely. Marc Crane, the developer of FusionPBX, is under the impression that this is either an FS bug or that something has changed with FS' handling of MWI. I don't know lua so I can't weigh in on this myself. I filed a Jira on this, see the following for more details, including the full script the above excerpt is taken from: http://jira.freeswitch.org/browse/FS-5739 Any input would be greatly appreciated. Phil Quesinberry Q Systems Engineering, Inc. (410) 969-8002 http://www.qsystemsengineering.com <http://www.qsystemsengineering.com/>
Lua seems a bit finicky about strings. How about you debug each variable and each string.len etc function? -Avi
Does the debug.getinfo work before ? I do not think, debug library is not possible with mod_lua through freeswitch. may be I am wrong? Lloyd * * On Sun, Sep 1, 2013 at 7:14 AM, Avi Marcus <avi@avimarcus.net> wrote:
Lua seems a bit finicky about strings. How about you debug each variable and each string.len etc function?
-Avi
_________________________________________________________________________ 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
participants (3)
-
Avi Marcus
-
Lloyd Aloysius
-
Phil Quesinberry