[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-dev
Subject:    [Freeswitch-dev] Lua script not working in Freeswitch
From:       Joli Martinez <mrjoli021 () gmail ! com>
Date:       2013-12-12 14:16:29
Message-ID: BD3DA293-7D70-4EB4-9B09-02E9C862BFFB () gmail ! com
[Download RAW message or body]

Hello,

I am trying to get a Lua script to read from mysql db and depending on result \
transfer call appropriately.  The script works correctly outside of FS, it connects \
to the DB and returns the correct results.  Once I incorporate it into FS the script \
fails. It cant find mysql,So after several hours of troublshooting.  I created a \
python script to pull the data from the db and return the results to the Lua script.  \
Again the script work correctly outside of FS once I have FS call the script the same \
variable the had values before are now Nil.

I believe it some type of environment or permissions issue, but not sure how to fix \
it.  All files are in the "freeswitch/scripts" directory and permissions are \
freeswitch owner, daemon group. Freeswitch is running correctly, OS is CentOS 6.4

please help

Thanks
_________________________________________________________________________
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-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic