notice: JavaScript: var caller_id = session.getVariable("caller_id_number") that is not wrong !! ________________________________ From: mayamatakeshi <mayamatakeshi@gmail.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, July 3, 2012 3:20 PM Subject: Re: [Freeswitch-users] how to get the content of sip header ? A yes, sorry. I don't use lua with FS that much either. But i got it from here: http://wiki.freeswitch.org/wiki/Session_getVariable var caller_id =session.getVariable("caller_id_number")I can see that page is the one that is wrong (will correct it now). On Tue, Jul 3, 2012 at 7:38 PM, Peter Olsson <peter.olsson@visionutveckling.se> wrote: 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! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org