<div dir="ltr"><div>Thanks for letting us know that it worked.<br></div>-MC<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 2:03 AM, Grant Bagdasarian <span dir="ltr">&lt;<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Yes!!!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">That did the trick. I removed the global originate_timeout and set the leg_timeout for each leg enclosed in [ ].<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thank you Michael!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael Collins<br>
<b>Sent:</b> Wednesday, July 23, 2014 11:22 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] strange behaviour using group_confirm and originate_timeout<u></u><u></u></span></p><p class="MsoNormal">
<u></u> <u></u></p><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">What about this?<br><a href="https://wiki.freeswitch.org/wiki/Channel_Variables#group_confirm_cancel_timeout" target="_blank">https://wiki.freeswitch.org/wiki/Channel_Variables#group_confirm_cancel_timeout</a><u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt">It implies you need to use leg_timeout on each leg vs. originate_timeout globally but you could test and verify and then let the doc team know for sure. ;) <u></u><u></u></p>
</div><p class="MsoNormal">-MC<u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">
On Tue, Jul 22, 2014 at 7:54 AM, Grant Bagdasarian &lt;<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>&gt; wrote:<u></u><u></u></p><div><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I’m using the enterprise originate to ring multiple destinations after the a leg has answered.<u></u><u></u></p><p class="MsoNormal">These are the global parameters: &lt;ignore_early_media=true,monitor_early_media_fail=user_busy:2:480+620!destination_out_of_order:2:1776.7,originate_continue_on_timeout=true,originate_timeout=15&gt;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Notice the originate_timeout has been set to 15.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">When one of the ringing destinations answers the call, group_confirm is used to have them complete a script in order to get connected.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">session.execute(&quot;export&quot;, &quot;group_confirm_key=exec&quot;);<u></u><u></u></p><p class="MsoNormal">session.execute(&quot;export&quot;, &quot;group_confirm_file=javascript /usr/src/freeswitch/conf/scripts/confirm.js);<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">When the confirm script is being executed, a file is being played and some digits need to be collected. Using play_and_get_digits. Audio file is about 12 seconds. <u></u><u></u></p>
<p class="MsoNormal">But as soon as the 15 seconds timeout is hit which was set before, the destination is disconnected.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">What do I need to set in order for freeswitch to know the destination has answered, so it leaves that answered destination alone and does not enforce the originate_timeout?<u></u><u></u></p>
<p class="MsoNormal">I’d expect the originate_timeout to be the time from starting to ring a destination till it has answered. Not continue enforcing it once the destination has been answered.<u></u><u></u></p><p class="MsoNormal">
Then again, group_confirm is required to be completed in order for freeswitch to mark the call as accepted, so this behavior might make sense.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">
It comes down to the destinations being called not having enough time to complete the script because the originate_timeout is set to 15 seconds.<u></u><u></u></p><p class="MsoNormal">Changing it to 25 gives them more time, but 15 seconds is the requirement for this application. <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Any ideas? because I’m lost..<u></u><u></u></p><p class="MsoNormal"><span style="color:#888888"> <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#888888">Grant<u></u><u></u></span></p>
</div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><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><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></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>