[Freeswitch-users] using enable_heartbeat to detect network problems in event_socket

Michael Jerris mike at jerris.com
Wed Aug 5 11:34:51 MSD 2015


I would just detect the socket closing instead of using a heartbeat for
sure

On Wednesday, August 5, 2015, Babak Yakhchali <babak.freeswitch at gmail.com>
wrote:

> Hi
> I'm using pure java sockets (not current available esl implementations)
> with event_socket to control sessions. to detect lan disconnects I'm using
> session_heartbeat events every 1 second (this is adjustable). Considering
> performance is this a bad approach or not ? any better suggestions?
> if I execute enable_heartbeat before answering the call this message is
> printed on console:
> switch_core_session.c:1555 sofia/internal/1000 at 172.16.90.1
> <javascript:_e(%7B%7D,'cvml','1000 at 172.16.90.1');> using scheduler due to
> bypass media or media is not established.
>
> should I answer the session before calling enable_heartbeat?
> thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150805/125c18a1/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list