[Freeswitch-users] mod_socket: custom timeout for HEARTBEAT event

Anthony Minessale anthony.minessale at gmail.com
Wed Oct 14 07:52:14 PDT 2009


the heartbeat you were seeing that needs a uuid was the session heartbeat
which is a per-call heartbeat.
indeed, the system heartbeat is not customizable.


On Wed, Oct 14, 2009 at 1:31 AM, Artem Shiyanov <shiyanov at gmail.com> wrote:

> Finally!!
> Thank you Michael, I didn't know about "status" app. It satisfies all my
> desires.
>
> And again,
> thanks for all the community for the strong support!
>
> Artem
>
>
>
>
> On Tue, Oct 13, 2009 at 10:48 PM, Michael Collins <msc at freeswitch.org>wrote:
>
>>
>>
>> On Tue, Oct 13, 2009 at 8:32 AM, Artem Shiyanov <shiyanov at gmail.com>wrote:
>>
>>> Sorry for my foolishness but I stil can't grasp it.
>>> I'm developing app based on inbound mod_event_socket and I don't know how
>>> to run "enable_heartbeat" or " sched_heartbeat" without specifying any alive
>>> session uuid. I tried to use "create_uuid" and send mentioned  commands to
>>> the created uuid  but this approach doesn't work. I do need to monitor the
>>> FS state itself rather then any particular call.
>>>
>>> Please, enlighten me!
>>> Artem
>>>
>>
>> So if I understand correctly, you want to see the system heartbeat more
>> frequently than every 20 seconds? What, exactly, is in the heartbeat that
>> you need? You can get the same information by sending the API "status" and
>> reading the results.
>>
>> If I read the source code correctly it looks like the system heartbeat is
>> hard-coded at 20 seconds. See switch_core.c, line 155. However, before you
>> go messing with a core file I would make sure that you can't already use the
>> tools that are available, like sending a "status" API every 5 seconds (or
>> whatever interval you need).
>>
>> -MC
>>
>>
>> _______________________________________________
>> 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
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> 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
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091014/ed84b9e8/attachment-0002.html 


More information about the FreeSWITCH-users mailing list