<div dir="ltr">Hi Michael.<div><br></div><div>Thanks for the reply. You are right - <span style="font-family:arial,sans-serif;font-size:13px">giving the called party X number of seconds to press 1 to confirm the call, otherwise move on in the call processing.</span></div><div><br></div><div>But consider this - we are forwarding to cell phones. We want to ring for 24 seconds (assuming cell vm kicks in at 25 secs) so that we do not get to cell VM and can send to our own VM. So leg_timeout = 24. </div><div><br></div><div>But if the called party picks up at 23 seconds - we want to keep the calling party on the line - so kill the call timeout - hence <a href="https://wiki.freeswitch.org/wiki/Channel_Variables#group_confirm_cancel_timeout" target="_blank" style="font-size:13px;font-family:arial,sans-serif">group_confirm_cancel_timeout</a> = true. Perfect. Works.</div><div><br></div><div>Now I just need to reset the timeout, i.e. <a href="https://wiki.freeswitch.org/wiki/Channel_Variables#group_confirm_cancel_timeout" target="_blank" style="font-size:13px;font-family:arial,sans-serif">group_confirm_timeout</a> = 10. So leg_timeout is time to ring if no answer. leg_timeout + group_confirm_timeout is time to ring is called party answers. That would be perfect and is very neat and precise. And all done in dialplan :)</div><div><br></div><div><br></div><div>Phil</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 12:13 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Philip,<br><br>If I understand what you're trying to accomplish, namely giving the called party X number of seconds to press 1 to confirm the call, otherwise move on in the call processing, then I'm pretty sure that you don't want to set the group_confirm_cancel_timeout to true. See explanation here:<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><br><br></div>I'd try leaving that as false and setting the leg timeout value to be whatever time you need. Note: I'm pretty sure that the leg timeout includes the amount of time the leg spends ringing the cell phone, so be sure to factor in the possibility that the called party doesn't answer right away but maybe it could take 10+ seconds before the person on the other end of the cell phone even hears "press one to accept."<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">-MC<br><br></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Sep 23, 2014 at 3:36 PM, Phillip Jones <span dir="ltr"><<a href="mailto:pjintheusa@gmail.com" target="_blank">pjintheusa@gmail.com</a>></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 class="h5"><div dir="ltr"><div>Hi there,</div><div><br></div><div>I have question about group_confirm and I am hoping someone can help:</div><div><br></div><div>I am bridging a call and prompting the called party to press 1 to answer. Works great:</div><div><br></div><div><span style="white-space:pre-wrap">                </span><action application="answer"/><br></div><div><div> <span style="white-space:pre-wrap">        </span><action application="set" data="group_confirm_file=phrase:ppn_to_accept_call_from"/> </div><div><span style="white-space:pre-wrap">                </span><action application="set" data="group_confirm_key=1"/></div><div><span style="white-space:pre-wrap">                </span><action application="bridge" data="{leg_timeout=10}user2/1001<br></div><div><div><span style="white-space:pre-wrap">                </span><action application="say" data="en number pronounced 54321"/><br></div><div><br></div></div></div><div><span style="white-space:pre-wrap">You will notice that leg_timeout is 10 (set low to test). So that gives the caller just a couple of seconds to answer. So I add:</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap"><b> <action application="set" data="group_confirm_cancel_timeout=true"/></b> </span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">This cancels that leg_timeout - the call now will stay up until the called party presses 1 or either party hangs up.</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">If a call goes to a cell phone voicemail - this can result in a long message of repeated "press 1 to accept call". And I cannot move the calling party on to the next dialplan action. </span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">I tried originate_timeout and call_timeout and all seemed to be cancelled by </span><span style="white-space:pre-wrap">group_confirm_cancel_timeout, as you might expect.</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Is there a way to set a timeout in that group_confirm stage? For example a <b>group_confirm_timeout </b>setting. That would set the seconds the called party has to confirm?</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Thanks in anticipation.</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Phil</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap"><br></span></div></div>
<br></div></div><span class="">_________________________________________________________________________<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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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></span></blockquote></div><br></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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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></blockquote></div><br></div>