Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] ESL asynchronous use


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
support at telium.io
Guest





PostPosted: Wed Nov 10, 2021 10:42 pm    Post subject: [Freeswitch-users] ESL asynchronous use Reply with quote

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)
Back to top
brian at freeswitch.com
Guest





PostPosted: Thu Nov 11, 2021 9:12 am    Post subject: [Freeswitch-users] ESL asynchronous use Reply with quote

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@telium.io (support@telium.io)> wrote:

Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
support at telium.io
Guest





PostPosted: Thu Nov 11, 2021 6:52 pm    Post subject: [Freeswitch-users] ESL asynchronous use Reply with quote

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@freeswitch.com]
Sent: Thursday, November 11, 2021 8:46 AM
To: Telium Technical Support <support@telium.io>
Cc: FreeSWITCH Users Help <freeswitch-users@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@telium.io (support@telium.io)> wrote:
Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=https://twitter.com/freeswitch]
Back to top
grcamauer at gmail.com
Guest





PostPosted: Fri Nov 12, 2021 8:41 am    Post subject: [Freeswitch-users] ESL asynchronous use Reply with quote

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@telium.io (support@telium.io)> wrote:

Quote:

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@freeswitch.com (brian@freeswitch.com)]
Sent: Thursday, November 11, 2021 8:46 AM
To: Telium Technical Support <support@telium.io (support@telium.io)>
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@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@telium.io (support@telium.io)> wrote:
Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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
Back to top
support at telium.io
Guest





PostPosted: Sun Nov 14, 2021 3:32 am    Post subject: [Freeswitch-users] ESL asynchronous use Reply with quote

I looked at the ESL C code and I *THINK* that I have to poll using the esl_recv_event_timed function (to look for the SESSION_HEARTBEAT event).

Is there already a callback function that I can hook into to be notified 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.

Or is there some other way to handle this?


From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Guillermo Ruiz Camauer
Sent: Friday, November 12, 2021 8:31 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] ESL asynchronous use

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
Quote:
                             







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

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@freeswitch.com (brian@freeswitch.com)]
Sent: Thursday, November 11, 2021 8:46 AM
To: Telium Technical Support <support@telium.io (support@telium.io)>
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@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@telium.io (support@telium.io)> wrote:
Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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
Back to top
anthony.minessale at g...
Guest





PostPosted: Sun Nov 14, 2021 11:11 am    Post subject: [Freeswitch-users] ESL asynchronous use Reply with quote

You might like SignalWire RELAY which is a serverless call control API

https://docs.signalwire.com/topics/relay/#relay-documentation



On Sun, Nov 14, 2021 at 2:27 AM Telium Technical Support <support@telium.io (support@telium.io)> wrote:

Quote:

I looked at the ESL C code and I *THINK* that I have to poll using the esl_recv_event_timed function (to look for the SESSION_HEARTBEAT event).
 
Is there already a callback function that I can hook into to be notified 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.
 
Or is there some other way to handle this?
 
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Guillermo Ruiz Camauer
Sent: Friday, November 12, 2021 8:31 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] ESL asynchronous use
 
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 
Quote:
                             


 



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

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@freeswitch.com (brian@freeswitch.com)]
Sent: Thursday, November 11, 2021 8:46 AM
To: Telium Technical Support <support@telium.io (support@telium.io)>
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@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@telium.io (support@telium.io)> wrote:
Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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


_________________________________________________________________________

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--
Anthony Minessale II
Founder, FreeSWITCH.
http://freeswitch.com




https://youtu.be/l_hOxzCt6X4

https://www.youtube.com/watch?v=oAxXgyx5jUw

https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
Back to top
support at telium.io
Guest





PostPosted: Tue Nov 16, 2021 6:16 pm    Post subject: [Freeswitch-users] ESL asynchronous use Reply with quote

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.



From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Sunday, November 14, 2021 11:02 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] ESL asynchronous use

You might like SignalWire RELAY which is a serverless call control API


https://docs.signalwire.com/topics/relay/#relay-documentation



On Sun, Nov 14, 2021 at 2:27 AM Telium Technical Support <support@telium.io (support@telium.io)> wrote:
Quote:

I looked at the ESL C code and I *THINK* that I have to poll using the esl_recv_event_timed function (to look for the SESSION_HEARTBEAT event).

Is there already a callback function that I can hook into to be notified 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.

Or is there some other way to handle this?


From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Guillermo Ruiz Camauer
Sent: Friday, November 12, 2021 8:31 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] ESL asynchronous use

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
Quote:
                             







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

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@freeswitch.com (brian@freeswitch.com)]
Sent: Thursday, November 11, 2021 8:46 AM
To: Telium Technical Support <support@telium.io (support@telium.io)>
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@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@telium.io (support@telium.io)> wrote:
Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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



_________________________________________________________________________

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com





--
Anthony Minessale II

Founder, FreeSWITCH.

http://freeswitch.com





https://youtu.be/l_hOxzCt6X4

https://www.youtube.com/watch?v=oAxXgyx5jUw

https://www.youtube.com/watch?v=9XXgW34t40s

https://www.youtube.com/watch?v=NLaDpGQuZDA
Back to top
david.villasmil.work a...
Guest





PostPosted: Tue Nov 16, 2021 8:13 pm    Post subject: [Freeswitch-users] ESL asynchronous use Reply with quote

XD

On Tue, 16 Nov 2021 at 23:13, Telium Technical Support <support@telium.io (support@telium.io)> wrote:

Quote:

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.


 
 
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Anthony Minessale
Sent: Sunday, November 14, 2021 11:02 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] ESL asynchronous use
 
You might like SignalWire RELAY which is a serverless call control API
 

https://docs.signalwire.com/topics/relay/#relay-documentation


 
On Sun, Nov 14, 2021 at 2:27 AM Telium Technical Support <support@telium.io (support@telium.io)> wrote:
Quote:

I looked at the ESL C code and I *THINK* that I have to poll using the esl_recv_event_timed function (to look for the SESSION_HEARTBEAT event).
 
Is there already a callback function that I can hook into to be notified 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.
 
Or is there some other way to handle this?
 
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Guillermo Ruiz Camauer
Sent: Friday, November 12, 2021 8:31 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] ESL asynchronous use
 
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 
Quote:
                             


 



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

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@freeswitch.com (brian@freeswitch.com)]
Sent: Thursday, November 11, 2021 8:46 AM
To: Telium Technical Support <support@telium.io (support@telium.io)>
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@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@telium.io (support@telium.io)> wrote:
Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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



_________________________________________________________________________

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



 

--
Anthony Minessale II

Founder, FreeSWITCH.

http://freeswitch.com

 

 

https://youtu.be/l_hOxzCt6X4

https://www.youtube.com/watch?v=oAxXgyx5jUw

https://www.youtube.com/watch?v=9XXgW34t40s

https://www.youtube.com/watch?v=NLaDpGQuZDA










_________________________________________________________________________

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


--
Regards,


David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services