Hi,

I'm trying to get the disposition of a failed call in lua, but log shows session is not initialised on the "else" case, is there a way to get the reason why it fails?

Thanks.



Lua:


 local bleg = freeswitch.Session("user/" .. digits)


 if bleg:ready() then
  bleg:transfer("conference:3000", "inline", "")
 else
disposition = freeswitch.getVariable("origination_disposition")
  session:speak("Call failed " .. disposition)
 end

-- 
Seven Du
http://www.freeswitch.org.cn
http://about.me/dujinfang
http://www.dujinfang.com

Sent with Sparrow