<font face="verdana,sans-serif">before bridge , set the following and give a try</font><div><font face="verdana,sans-serif"><br></font></div><div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">session:execute("set","</span><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif">continue_on_fail=true");</font></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div><font face="verdana,sans-serif"><br clear="all"></font><div><font face="verdana, sans-serif"><div>Lloyd</div>
</font><div><font face="verdana, sans-serif" color="#cc6600" size="1"><b><br></b></font></div><div><font face="verdana, sans-serif" color="#cc6600" size="1"><b> <a href="http://www.sunteltech.ca/blog/" target="_blank"></a></b></font></div>
</div>
<br><br><div class="gmail_quote">On Wed, Aug 7, 2013 at 10:10 AM, Babak Yakhchali <span dir="ltr"><<a href="mailto:babak.freeswitch@gmail.com" target="_blank">babak.freeswitch@gmail.com</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">Hi<div>I'm using this code in a loop:</div><div><br></div><div><div>session:execute("set","bypass_media=true");</div><div>session:execute("bridge","${lcr_auto_route}");</div>
<div><span style="white-space:pre-wrap">                        </span></div><div>if session:getVariable("last_bridge_hangup_cause") == "USER_BUSY" then</div><div><span style="white-space:pre-wrap">        </span>session:sayPhrase("voip_destination_busy",gender);</div>
<div>end</div><div><br></div><div>tryIn = session:playAndGetDigits(1,1,3,10000,"#","phrase:voip_try_call_again:"..gender,"phrase:voip_no_input_entered:"..gender,"\\d+",10000);</div>
</div><div><br></div><div>but after the bridge ends, playAndGetDigists is not able to playback the phrase and so returns immediately.</div><div><br></div><div>thanks</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>