[Freeswitch-users] lua script

Archana Venugopan a.venugopan at mundio.com
Mon Nov 26 19:29:15 MSK 2012


Hi,

Does anyone know how can we use a variable declared inside if statement outside if block?

if sip_request_user == nil then
sip_request_user =  params:getHeader("sip_request_user")
else
local sip_request_user1 = tonumber(sip_request_user)
end

In my lua I have something like above and I want to use the variable sip_request_user1 outside if. What can be done?

Regards,
Archana

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121126/b755f72c/attachment.html 


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