[Freeswitch-users] how to get the content of sip header ?

mayamatakeshi mayamatakeshi at gmail.com
Tue Jul 3 14:25:12 MSD 2012


On Tue, Jul 3, 2012 at 7:16 PM, Samira Mh <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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120703/696cdb51/attachment.html 


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