VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
shiyanov at gmail.com Guest
|
Posted: Sun Oct 11, 2009 12:10 pm Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
Hi all!
As it stays in wiki:Â
...
HEARTBEAT
Status information for freeswitch trigerred by freeswitch's heartbeat every 20 seconds.
...
Is there any way to customize timeout of HEARTBEAT events?
Thanks in advance,
Artem |
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Sun Oct 11, 2009 4:54 pm Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
Maybe you want enable_heartbeat or sched_heartbeat from mod_dptools?
You can pass your parameters in second to these two.
Example:
<action application="enable_heartbeat" data="1"/>
<action application="sched_heartbeat" data="1"/>
Where 1 in this case is the number of heartbeats per seconds.
You can use that example on the Dialplan XML but you can also use it on mod_event_socket outbound, etc.
Best regards,
Diego
On Sun, Oct 11, 2009 at 4:59 PM, Artem Shiyanov <shiyanov@gmail.com (shiyanov@gmail.com)> wrote:
|
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Sun Oct 11, 2009 6:04 pm Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
On Oct 11, 2009, at 5:44 PM, Diego Viola wrote:
Quote: | Maybe you want enable_heartbeat or sched_heartbeat from mod_dptools?
You can pass your parameters in second to these two.
Example:
<action application="enable_heartbeat" data="1"/>
<action application="sched_heartbeat" data="1"/>
Where 1 in this case is the number of heartbeats per seconds.
|
Number of seconds between hearbeats, not hearbeats per second.
Quote: | You can use that example on the Dialplan XML but you can also use it
on mod_event_socket outbound, etc.
|
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
shiyanov at gmail.com Guest
|
Posted: Mon Oct 12, 2009 12:52 am Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
Michael, Diego,
thanks for the rapid answers!
As far as I understand, "enable_heartbeat" app is launching SESSION_HEARTBEAT events that will stop when the call will be cleared. Also I "heard" that "enable_heartbeat" works only for calls with proxied media.
What I want is to monitor FreeSwitch status: is it alive and what is the system status message. This info is provided in HEARTBEAT event gracefully but in constant time period = 20 sec. So the main question is- how to customize this period?
Artem
On Mon, Oct 12, 2009 at 2:52 AM, Michael Jerris <mike@jerris.com (mike@jerris.com)> wrote:
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Oct 12, 2009 9:39 am Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
it works in either case with or without media
the syntax for setting the frequency was answered above.
On Mon, Oct 12, 2009 at 12:38 AM, Artem Shiyanov <shiyanov@gmail.com (shiyanov@gmail.com)> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
shiyanov at gmail.com Guest
|
Posted: Tue Oct 13, 2009 10:53 am Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
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
On Mon, Oct 12, 2009 at 6:26 PM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Tue Oct 13, 2009 1:57 pm Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
On Tue, Oct 13, 2009 at 8:32 AM, Artem Shiyanov <shiyanov@gmail.com (shiyanov@gmail.com)> wrote:
Quote: | 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 |
|
Back to top |
|
|
shiyanov at gmail.com Guest
|
Posted: Wed Oct 14, 2009 1:40 am Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
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@freeswitch.org (msc@freeswitch.org)> wrote:
Quote: |
On Tue, Oct 13, 2009 at 8:32 AM, Artem Shiyanov <shiyanov@gmail.com (shiyanov@gmail.com)> wrote:
Quote: | 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@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
http://www.freeswitch.org
|
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Wed Oct 14, 2009 10:10 am Post subject: [Freeswitch-users] mod_socket: custom timeout for HEARTBEAT |
|
|
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@gmail.com (shiyanov@gmail.com)> wrote:
Quote: | 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@freeswitch.org (msc@freeswitch.org)> wrote:
Quote: |
On Tue, Oct 13, 2009 at 8:32 AM, Artem Shiyanov <shiyanov@gmail.com (shiyanov@gmail.com)> wrote:
Quote: | 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@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
http://www.freeswitch.org
|
_______________________________________________
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
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@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
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
|