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 &#39;rubygems&#39;<br>
require &#39;fsr&#39;<br>require &quot;fsr/listener/inbound&quot;<br><br>def custom_channel_heartbeat_handler(event)<br>  puts Time.now.strftime(&#39;%S&#39;)<br>end<br>FSL::Inbound.add_event_hook(:HEARTBEAT) {|event| custom_channel_heartbeat_handler(event) }<br>
FSR.start_ies!(FSL::Inbound, :host =&gt; &quot;localhost&quot;, :port =&gt; 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">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</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">&lt;<a href="mailto:diego.viola@gmail.com" target="_blank">diego.viola@gmail.com</a>&gt;</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>&lt;extension name=&quot;test&quot;&gt;<br>&lt;condition field=&quot;destination_number&quot; expression=&quot;^8084$&quot;&gt;<br>


&lt;action application=&quot;answer&quot;/&gt;<br>&lt;action application=&quot;enable_heartbeat&quot; data=&quot;1&quot;/&gt;<br>&lt;/condition&gt;<br>&lt;/extension&gt;<br><br>But when I do &quot;event plain all&quot; I see the heartbeats are being fired every 20 seconds... what I&#39;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, &quot;%s setting session heartbeat to %u second(s).\n&quot;,<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>