I thought that too, and had done a text-search my code for sched_hangup, and there&#39;s no mention of it anywhere.<div><br></div><div>Is there anything else that would set it based on other variables being set? The closest things I have is I&#39;m setting api_hangup_hook to run some javascript when the call is hung up, and hangup_after_bridge=false</div>

<div><br></div><div>My dialplan is fairly complicated (several js files get run to do database logging, business logic, etc.) So the console output is probably more helpful:</div><div><a href="http://pastebin.freeswitch.org/18385">http://pastebin.freeswitch.org/18385</a>
</div><div><br clear="all">Cheers,<br>Fraser<br><br><br>
<br><br><div class="gmail_quote">On 14 February 2012 15:41, 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Like omortimer says it looks suspicious. I&#39;d pastebin your dialplan and the console log of a single call coming in (or going out) and let&#39;s see if you&#39;ve got a sched_hangup in there somewhere.<span class="HOEnZb"><font color="#888888"><br>

<br>-MC</font></span><div class="HOEnZb"><div class="h5"><br><br>
<div class="gmail_quote">On Tue, Feb 14, 2012 at 12:26 PM, Fraser Redmond <span dir="ltr">&lt;<a href="mailto:fraserredmond@gmail.com" target="_blank">fraserredmond@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I&#39;ve done a test call, and got a pcap of it, along with a sip debug. (I can email you files if you are willing to take a look.)<div><br></div><div>There&#39;s no sip traffic until it gets to the log lines I pasted before, which is followed by the server sending a BYE to the gateway and client.</div>




<div><br></div><div>I did a google search on &quot;nat timeout&quot;, but the only thing relevant seemed to be the rtp-timeout and session-timeout which I mentioned before.</div><div><br></div><div>I really think there&#39;s a setting somewhere telling it to hangup. The logs have things like this as the call is being hung up (but before the BYE&#39;s are sent) which seem suspicious</div>




<div><br></div><div>&gt; Added task 4 switch_ivr_schedule_hangup (uuid) to run at 1329249352</div><div><br></div><div>&gt; ending bridge by request from read function</div><div><br clear="all">Cheers,<br>Fraser<br><br><br>





<br><br><div class="gmail_quote">On 14 February 2012 14:08, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




I would get pcaps of the calls that drop at 5 minutes, including media. If you need suggestions on how to collect pcaps then check out this page:<br><br><a href="http://wiki.freeswitch.org/wiki/Packet_Capture" target="_blank">http://wiki.freeswitch.org/wiki/Packet_Capture</a><br>





<br>Lots of tools at your disposal! Don&#39;t forget that Wireshark has a really nice interface for exploring SIP calls and RTP streams.<br><br>-MC<br><br><div class="gmail_quote"><div><div>On Tue, Feb 14, 2012 at 10:16 AM, Fraser Redmond <span dir="ltr">&lt;<a href="mailto:fraserredmond@gmail.com" target="_blank">fraserredmond@gmail.com</a>&gt;</span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>I&#39;ve got calls that are getting disconnected after 5 minutes (.<div><br></div><div>

There&#39;s some calls that don&#39;t, and we don&#39;t have many calls that last that long (which is why we hadn&#39;t noticed until now.)<div>



<br></div><div>I&#39;ve had a look through the documentation, and the only thing I saw that looked likely was the rtp-timeouts which I changed to this without any change:<br>    &lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;1800&quot;/&gt;<br>








<div>    &lt;param name=&quot;rtp-hold-timeout-sec&quot; value=&quot;1800&quot;/&gt;</div><div>(changed in internal and external profiles)</div><div><br></div><div>Here&#39;s the log output for when the call ends:</div><div>







<br></div><div><div>9d39d866-5732-11e1-b1a8-05fc5f64fa97 2012-02-14 17:42:58.340991 [DEBUG] switch_core_session.c:1009 Send signal sofia/internal/<a href="http://sip:12605@99.237.220.56:3907" target="_blank">sip:12605@99.237.220.56:3907</a> [BREAK]</div>







<div>2012-02-14 17:42:58.340991 [DEBUG] switch_scheduler.c:214 Added task 4 switch_ivr_schedule_hangup (9d39d866-5732-11e1-b1a8-05fc5f64fa97) to run at 1329241378</div><div>9d39d866-5732-11e1-b1a8-05fc5f64fa97 2012-02-14 17:42:58.361011 [DEBUG] switch_core_session.c:726 Send signal sofia/internal/<a href="http://sip:12605@99.237.220.56:3907" target="_blank">sip:12605@99.237.220.56:3907</a> [BREAK]</div>







<div>9d39d866-5732-11e1-b1a8-05fc5f64fa97 2012-02-14 17:42:58.521032 [DEBUG] switch_ivr.c:589 sofia/internal/<a href="http://sip:12605@99.237.220.56:3907" target="_blank">sip:12605@99.237.220.56:3907</a> Command Execute respond(603)</div>







<div>9d39d866-5732-11e1-b1a8-05fc5f64fa97 EXECUTE sofia/internal/<a href="http://sip:12605@99.237.220.56:3907" target="_blank">sip:12605@99.237.220.56:3907</a> respond(603)</div><div>9d39d866-5732-11e1-b1a8-05fc5f64fa97 2012-02-14 17:42:58.521032 [DEBUG] mod_sofia.c:2363 Responding with 603 [Decline]</div>







<div><br>Any other settings I should be looking at?</div></div><div><br></div><div>Cheers,<br>Fraser<br><br><br>
</div></div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></blockquote></div><br>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></blockquote></div><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div>