Hmm... I’ve never used Lua, but that means that all documentation for mod_lua on the wiki is wrong? Sounds strange to me...
/Peter
Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
För mayamatakeshi
Skickat: den 3 juli 2012 12:25
Till: FreeSWITCH Users Help
Ämne: Re: [Freeswitch-users] how to get the content of sip header ?
On Tue, Jul 3, 2012 at 7:16 PM, Samira Mh <saami_mh@ymail.com> wrote:
for example i want to read the value of sip-header ' CSeq' in lua(that is configure for mod_xml in /usr/loca/freeswitch/conf/autoload/lia.xml.conf), must to issue as follow:
local var = session:getVariable("sip_CSeq")
but the error occure:
attempt to index global 'session' (a nil value)
Lua syntax error. It should be:
local var = session.getVariable("sip_CSeq")
regards,
Takeshi.
!DSPAM:4ff2c7f532762054221329!