before bridge , set the following and give a try

session:execute("set","continue_on_fail=true");


Lloyd

 


On Wed, Aug 7, 2013 at 10:10 AM, Babak Yakhchali <babak.freeswitch@gmail.com> wrote:
Hi
I'm using this code in a loop:

session:execute("set","bypass_media=true");
session:execute("bridge","${lcr_auto_route}");
if session:getVariable("last_bridge_hangup_cause") == "USER_BUSY" then
session:sayPhrase("voip_destination_busy",gender);
end

tryIn = session:playAndGetDigits(1,1,3,10000,"#","phrase:voip_try_call_again:"..gender,"phrase:voip_no_input_entered:"..gender,"\\d+",10000);

but after the bridge ends, playAndGetDigists is not able to playback the phrase and so returns immediately.

thanks

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org