Yes, I have called to my extension and saw this:<br><br>2009-10-09 01:25:44.820677 [INFO] switch_core_session.c:1041 sofia/internal/<a href="mailto:1000@192.168.0.2">1000@192.168.0.2</a> setting session heartbeat to 1 second(s).<br>
<br>But I still see the heartbeat events being fired after 20 seconds...<br><br>I have made this script that tells me the seconds when a heartbeat is being fired...<br><br>#!/usr/bin/env ruby<br><br>require 'rubygems'<br>
require 'fsr'<br>require "fsr/listener/inbound"<br><br>def custom_channel_heartbeat_handler(event)<br> puts Time.now.strftime('%S')<br>end<br>FSL::Inbound.add_event_hook(:HEARTBEAT) {|event| custom_channel_heartbeat_handler(event) }<br>
FSR.start_ies!(FSL::Inbound, :host => "localhost", :port => 8021)<br><br><br>This is the output:<br><br>[diego@myhost ~]$ ruby test.rb<br>No log4r found, falling back to standard ruby library Logger<br>I, [2009-10-09T01:25:51.797012 #3292] INFO -- : *** FreeSWITCHer Inbound EventSocket Listener connected to localhost:8021 ***<br>
I, [2009-10-09T01:25:51.797291 #3292] INFO -- : *** <a href="http://code.rubyists.com/projects/fs">http://code.rubyists.com/projects/fs</a><br>59<br>19<br>39<br>59<br>19<br>39<br>59<br><br><br><div class="gmail_quote">On Fri, Oct 9, 2009 at 5:13 AM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Oct 8, 2009 at 7:56 PM, Diego Viola <span dir="ltr"><<a href="mailto:diego.viola@gmail.com" target="_blank">diego.viola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone,<br><br>I have a question about FreeSWITCH heartbeat, I have this on my dialplan:<br><br><extension name="test"><br><condition field="destination_number" expression="^8084$"><br>
<action application="answer"/><br><action application="enable_heartbeat" data="1"/><br></condition><br></extension><br><br>But when I do "event plain all" I see the heartbeats are being fired every 20 seconds... what I'm doing wrong?<br>
<br></blockquote></div></div><div><br>On the console do you see the call to switch_core_session_enable_heartbeat? <br>switch_core_session.c:1041: switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "%s setting session heartbeat to %u second(s).\n",<br>
<br>Confirm that it is actually calling that.<br><br>BTW, it would sure be nice if this app were documented on the wiki, hint hint. ;)<br>-MC<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks,<br><font color="#888888"><br>Diego<br><br>
</font><div class="im"><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="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>