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

dma mays.david at gmail.com
Tue Dec 20 17:58:16 MSK 2011


Dear support,

I have a Lua script that accepts inbound call, creates outbound call, and
then bridges the 2 sessions. Its code is simply like this:

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

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

However, when bridge() is called, the call immediately hangs up. The
following is reported:

2011-12-13 18:08:00.674769 [ERR] switch_cpp.cpp:1247 Channels not ready
2011-12-13 18:08:00.674769 [DEBUG] switch_cpp.cpp:618 CoreSession::hangup

By searching through the forum, I find a previous report of the same error
with Lua script. However no solution is provided for that ticket. 

Please kind advise how to fix this problem. 

Thanks,
D.Ma

--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-Channels-not-ready-when-bridge-call-in-Lua-tp7112050p7112050.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



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