[Freeswitch-users] LUA Scripting - When to check session readiness?

Giovanni Maruzzelli gmaruzz at gmail.com
Fri Mar 6 07:55:37 UTC 2020


clutter the code the most you can bear, and *definitely* before *ANY*
blocking operation (operation that wait for an answer. Maybe you don't know
that operation wait for an answer. Clutter the code )



On Thu, Mar 5, 2020 at 10:12 PM Wilmar Pérez via FreeSWITCH-users <
freeswitch-users at lists.freeswitch.org> wrote:

>
>
>
> ---------- Forwarded message ----------
> From: "Wilmar Pérez" <ewdpb at yahoo.com>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Bcc:
> Date: Thu, 5 Mar 2020 09:15:37 -0500
> Subject: LUA Scripting - When to check session readiness?
> Hi all,
>
> I am coding and IVR on LUA. Based on the freeswitch books you have to
> check session readiness to avoid getting stack in a nasty error or infinite
> loop. That is OK. My question is: when should I do it?  What I am doing now
> is to check it before asking caller for feedback or querying a Web
> Service.  Does it make sense? It bothers me that the code gets really
> cluttered b the constant checking (LUA code layout does not help either).
>
> I am very aware this is not exact science, I just want to know the
> opinion of more experienced people out there.
>
> Thanks!
>
> Wilmar
>
>
>
> ---------- Forwarded message ----------
> From: "Wilmar Pérez via FreeSWITCH-users" <
> freeswitch-users at lists.freeswitch.org>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Bcc:
> Date: Thu, 05 Mar 2020 13:12:31 -0800 (PST)
> Subject: [Freeswitch-users] LUA Scripting - When to check session
> readiness?
> _________________________________________________________________________
>
> 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



-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200306/8d413ffc/attachment.html>


More information about the FreeSWITCH-users mailing list