[Freeswitch-users] system call inside lua

Avi Marcus 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:

> Hi
> 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.
> Itried:
> -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.
> Regards
> M.Shirazi
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20211004/77ef4e0d/attachment.html>


More information about the FreeSWITCH-users mailing list