[Freeswitch-users] system call inside lua
avi at avimarcus.net
Mon Oct 4 14:56:27 UTC 2021
As far as I know, these are forked system calls. Freeswitch doesn't wait
for a response.
Can you use an odbc handle for a Lua db query?
(I worked around it by having the results written to a file and using an
api to read that file.)
On Mon, Oct 4, 2021, 5:27 PM Mehdi Shirazi <m.shirazi at gmail.com> wrote:
> I can run this query on linux cli:
> mssql-cli -S 192.168.69.60 -d IVR_SH -U IVRSH1 -P IVRSH -Q "SELECT * FROM
> "dbo"."IVR_REQEST" "
> but the same query inside lua script with os.execute does not work.
> -os.execute(' mssql-cli -S 192.168.69.60 -d IVR_SH -U IVRSH1 -P IVRSH -Q
> "SELECT * FROM "dbo"."IVR_REQEST" " ');
> -os.execute([[ mssql-cli -S 192.168.69.60 -d IVR_SH -U IVRSH1 -P IVRSH -Q
> "SELECT * FROM "dbo"."IVR_REQEST" " ]]);
> Please help.
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> Build your next product on our scalable cloud platform.
> Join our online community to chat in real time
> Professional FreeSWITCH Services
> sales at freeswitch.com
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users