<div dir="auto">XD</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 16 Nov 2021 at 23:13, Telium Technical Support <<a href="mailto:support@telium.io">support@telium.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="blue" vlink="purple"><div class="m_-5903277782531745128WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I didn’t see a C/C++ interface to this, also adds another layer (REST)…and I think is commercial which I can’t do at this point since I’m just doing proof of concept.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p></div></div><div lang="EN-US" link="blue" vlink="purple"><div class="m_-5903277782531745128WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> FreeSWITCH-users [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="font-family:Calibri,sans-serif">freeswitch-users-bounces@lists.freeswitch.org</a>] <b style="font-family:Calibri,sans-serif">On Behalf Of </b>Anthony Minessale<br><b style="font-family:Calibri,sans-serif">Sent:</b> Sunday, November 14, 2021 11:02 AM<br><b style="font-family:Calibri,sans-serif">To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" style="font-family:Calibri,sans-serif">freeswitch-users@lists.freeswitch.org</a>><br><b style="font-family:Calibri,sans-serif">Subject:</b> Re: [Freeswitch-users] ESL asynchronous use<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">You might like SignalWire RELAY which is a serverless call control API<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><a href="https://docs.signalwire.com/topics/relay/#relay-documentation" target="_blank">https://docs.signalwire.com/topics/relay/#relay-documentation</a><u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sun, Nov 14, 2021 at 2:27 AM Telium Technical Support <<a href="mailto:support@telium.io" target="_blank">support@telium.io</a>> wrote:<u></u><u></u></p></div><blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in;border-left-color:rgb(204,204,204)"><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I looked at the ESL C code and I *<b style="font-family:Calibri,sans-serif">THINK</b>* that I have to poll using the esl_recv_event_timed function (to look for the SESSION_HEARTBEAT event).</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Is there already a callback function that I can hook into to be <u style="font-family:Calibri,sans-serif">notified</u> of events?  If not, at which frequency should I poll for events (sleep inbetween) based on anyones experience?  I don’t like blocking code so I’m hoping there is already a callback function setup.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Or is there some other way to handle this?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> FreeSWITCH-users [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="font-family:Calibri,sans-serif">freeswitch-users-bounces@lists.freeswitch.org</a>] <b style="font-family:Calibri,sans-serif">On Behalf Of </b>Guillermo Ruiz Camauer<br><b style="font-family:Calibri,sans-serif">Sent:</b> Friday, November 12, 2021 8:31 AM<br><b style="font-family:Calibri,sans-serif">To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" style="font-family:Calibri,sans-serif">freeswitch-users@lists.freeswitch.org</a>><br><b style="font-family:Calibri,sans-serif">Subject:</b> Re: [Freeswitch-users] ESL asynchronous use</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">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.<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Guillermo<u></u><u></u></p><div><h3 style="margin-bottom:0.0001pt" id="m_-5903277782531745128gmail-m_4891520223118990250gmail-EventList-SESSION_HEARTBEAT"><span style="font-size:12pt;font-family:"Segoe UI",sans-serif;letter-spacing:-0.05pt;color:rgb(23,43,77)"> </span><u></u><u></u></h3><pre style="margin-top:7.5pt;font-family:monospace"><span style="font-size:10.5pt;font-family:monospace;color:rgb(23,43,77)">                              </span><u style="font-family:monospace"></u><u style="font-family:monospace"></u></pre></div><div><p class="MsoNormal"> <u></u><u></u></p></div></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">On Thu, Nov 11, 2021 at 8:56 PM Telium Technical Support <<a href="mailto:support@telium.io" target="_blank">support@telium.io</a>> wrote:<u></u><u></u></p></div><blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt;border-left-color:rgb(204,204,204)"><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">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.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Or is the only way to check success to send a command over the socket?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Same with disconnect, do we need to wait for a send failure?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Brian West [mailto:<a href="mailto:brian@freeswitch.com" target="_blank" style="font-family:Calibri,sans-serif">brian@freeswitch.com</a>] <br><b style="font-family:Calibri,sans-serif">Sent:</b> Thursday, November 11, 2021 8:46 AM<br><b style="font-family:Calibri,sans-serif">To:</b> Telium Technical Support <<a href="mailto:support@telium.io" target="_blank" style="font-family:Calibri,sans-serif">support@telium.io</a>><br><b style="font-family:Calibri,sans-serif">Cc:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" style="font-family:Calibri,sans-serif">freeswitch-users@lists.freeswitch.org</a>><br><b style="font-family:Calibri,sans-serif">Subject:</b> Re: [Freeswitch-users] ESL asynchronous use</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">If you have a crash you should perform a back trace and submit an issue on github.<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">/b<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">On Wed, Nov 10, 2021 at 7:50 PM Telium Technical Support <<a href="mailto:support@telium.io" target="_blank">support@telium.io</a>> wrote:<u></u><u></u></p></div><blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt;border-left-color:rgb(204,204,204)"><div><div><p class="MsoNormal">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?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">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?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Looking a bit at the esl.c code I’m wondering if the above are synchronous only…(polling for status)<u></u><u></u></p></div></div><p class="MsoNormal">_________________________________________________________________________<br><br>The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank">https://signalwire.com</a><br>Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>Build your next product on our scalable cloud platform.<br><br>Join our online community to chat in real time <a href="https://signalwire.community" target="_blank">https://signalwire.community</a><br><br>Professional FreeSWITCH Services<br><a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><br><br>Official FreeSWITCH Sites<br><a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br><a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a><br><a href="https://cluecon.com" target="_blank">https://cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><div><div><div><div><div><div><div><div><div><div><div><div><p class="MsoNormal"><span style="font-size:9.5pt"> </span><u></u><u></u></p></div><div><p style="margin-right:0in;margin-left:4.5pt;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:black">Brian West | Co-founder and Developer</span><u></u><u></u></p><p style="margin-right:0in;margin-left:4.5pt;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:black">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank" style="font-family:Arial,sans-serif">sales@freeswitch.com</a> </span><u></u><u></u></p><p style="margin-right:0in;margin-left:4.5pt;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:black">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" target="_blank" style="font-family:Arial,sans-serif"><span style="font-family:Arial,sans-serif;color:rgb(17,85,204)">17345 Civic Drive #2531 Brookfield, WI 53045</span></a></span><u></u><u></u></p><p style="margin-right:0in;margin-left:4.5pt;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:black">Email: </span><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(17,85,204)"><a href="mailto:brian@freeswitch.com" target="_blank" style="font-family:Arial,sans-serif">brian@freeswitch.com</a></span><u></u><u></u></p><p style="margin-right:0in;margin-left:4.5pt;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:black">Mobile: 918-424-9378</span><u></u><u></u></p><p style="margin-right:0in;margin-left:4.5pt;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:black">Website: </span><span style="font-size:9.5pt;color:black"><a href="https://www.freeswitch.com/" target="_blank"><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(17,85,204)">https://www.FreeSWITCH.com</span></a></span><u></u><u></u></p><p style="margin:0in 0in 0.0001pt"><span style="font-size:9pt;font-family:Arial,sans-serif;color:black"><a href="https://www.facebook.com/freeswitch" target="_blank" style="font-family:Arial,sans-serif"><span style="border:1pt solid windowtext;padding:0in;text-decoration:none;font-family:Arial,sans-serif"><img border="0" src="cid:17d2b6343fb4cd34f0f1" alt="Image removed by sender. https://www.facebook.com/signalwireinc?src=email" style="width:31px;max-width:100%"></span></a></span><span style="font-size:9pt;font-family:Tahoma,sans-serif;color:black"><a href="https://twitter.com/freeswitch" target="_blank" style="font-family:Tahoma,sans-serif"><span style="border:1pt solid windowtext;padding:0in;text-decoration:none;font-family:Tahoma,sans-serif"><img border="0" src="cid:17d2b6343fb4cd34f0f1" alt="Image removed by sender. https://twitter.com/freeswitch" style="width:31px;max-width:100%"></span></a></span><u></u><u></u></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><p class="MsoNormal">_________________________________________________________________________<br><br>The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank">https://signalwire.com</a><br>Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>Build your next product on our scalable cloud platform.<br><br>Join our online community to chat in real time <a href="https://signalwire.community" target="_blank">https://signalwire.community</a><br><br>Professional FreeSWITCH Services<br><a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><br><br>Official FreeSWITCH Sites<br><a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br><a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a><br><a href="https://cluecon.com" target="_blank">https://cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Guillermo Ruiz Camauer<u></u><u></u></p></div></div></div><p class="MsoNormal">_________________________________________________________________________<br><br>The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank">https://signalwire.com</a><br>Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>Build your next product on our scalable cloud platform.<br><br>Join our online community to chat in real time <a href="https://signalwire.community" target="_blank">https://signalwire.community</a><br><br>Professional FreeSWITCH Services<br><a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><br><br>Official FreeSWITCH Sites<br><a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br><a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a><br><a href="https://cluecon.com" target="_blank">https://cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><div><div><div><div><div><div><div><p class="MsoNormal">Anthony Minessale II<u></u><u></u></p></div><div><p class="MsoNormal">Founder, FreeSWITCH.<u></u><u></u></p></div><div><div><p class="MsoNormal"><a href="http://freeswitch.com" target="_blank">http://freeswitch.com</a><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt"><a href="https://youtu.be/l_hOxzCt6X4" target="_blank">https://youtu.be/l_hOxzCt6X4</a></span><u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://www.youtube.com/watch?v=oAxXgyx5jUw" target="_blank">https://www.youtube.com/watch?v=oAxXgyx5jUw</a><u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://www.youtube.com/watch?v=9XXgW34t40s" target="_blank"><span style="font-size:9.5pt;color:rgb(17,85,204)">https://www.youtube.com/watch?v=9XXgW34t40s</span></a><u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><u></u><u></u></p></div></div></div></div></div></div></div></div></div></div></div>_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>