[Freeswitch-users] problem when using playAndGetDigits after bridge is completed where bypass_media is true

Lloyd Aloysius lloyd.aloysius at sunteltech.ca
Wed Aug 7 20:15:18 MSD 2013


before bridge , set the following and give a try

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


Lloyd
*
*
*  <http://www.sunteltech.ca/blog/>*


On Wed, Aug 7, 2013 at 10:10 AM, Babak Yakhchali <babak.freeswitch at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130807/00df4417/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list