[Freeswitch-users] ESL asynchronous use

Guillermo Ruiz Camauer grcamauer at gmail.com
Fri Nov 12 13:31:16 UTC 2021


There is a SESSION_HEARTBEAT event that you can monitor to see if FS has
stopped responding.  It also has a lot of other useful information.

Guillermo



On Thu, Nov 11, 2021 at 8:56 PM Telium Technical Support <support at telium.io>
wrote:

> No crash, just learning how to use the ESL.  I strongly prefer async
> design, so wondering if connect and disconnect have some sort of
> success/failure callback.
>
>
>
> Or is the only way to check success to send a command over the socket?
>
>
>
> Same with disconnect, do we need to wait for a send failure?
>
>
>
> *From:* Brian West [mailto:brian at freeswitch.com]
> *Sent:* Thursday, November 11, 2021 8:46 AM
> *To:* Telium Technical Support <support at telium.io>
> *Cc:* FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> *Subject:* Re: [Freeswitch-users] ESL asynchronous use
>
>
>
> If you have a crash you should perform a back trace and submit an issue on
> github.
>
>
>
> /b
>
>
>
>
>
> On Wed, Nov 10, 2021 at 7:50 PM Telium Technical Support <
> support at telium.io> wrote:
>
> I’m trying to figure out asynchronous use of the ESL (from C).  If I call
> esl_connect_timeout with a timeout of 0, what happens if the connection is
> not made immediately?  Is there some callback function indicating
> success/failure?
>
>
>
> If the esl connection is lost (FreeSwitch crashes), is there a callback
> function indicating the lost connection?  Or do I need to issue a
> status/keepalive to ensure function succeeds?
>
>
>
> Looking a bit at the esl.c code I’m wondering if the above are synchronous
> only…(polling for status)
>
> _________________________________________________________________________
>
> 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
>
>
>
>
> --
>
>
>
> Brian West | Co-founder and Developer
>
> Need Commercial support? email sales at freeswitch.com
>
> FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
> <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
>
> Email: brian at freeswitch.com
>
> Mobile: 918-424-9378
>
> Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
>
> [image: Image removed by sender.
> https://www.facebook.com/signalwireinc?src=email]
> <https://www.facebook.com/freeswitch>[image: Image removed by sender.
> https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
> _________________________________________________________________________
>
> 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



-- 
Guillermo Ruiz Camauer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20211112/f41c8e5f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 344 bytes
Desc: not available
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20211112/f41c8e5f/attachment.jpg>


More information about the FreeSWITCH-users mailing list