[Freeswitch-users] Error "Channels not ready" when bridge call in Lua

Vitalie Colosov vetali100 at gmail.com
Thu Dec 29 08:23:29 MSK 2011


Sometimes it happened for me when session2 was not yet ready, and I fixed
this by adding a small workaround: "session:sleep(500);"
Please see below, and reply back if it works for you.

--------------------
session:answer()
session2 = freeswitch.Session(callstring)

*session:sleep(500);*

if (session2:ready()) then
   freeswitch.bridge(session, session2)
end
--------------------


2011/12/28 dma <mays.david at gmail.com>

> Hi Guys,
>
> Any idea on this problem?
>
> Regards,
> D.Ma
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/Error-Channels-not-ready-when-bridge-call-in-Lua-tp7112050p7134642.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _________________________________________________________________________
> 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/20111228/63a0ca50/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list