[Freeswitch-users] how to get the content of sip header ?
Peter Olsson
peter.olsson at visionutveckling.se
Tue Jul 3 14:38:24 MSD 2012
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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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 at ymail.com<mailto:saami_mh at 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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120703/ff3a2f0b/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list