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

Samira Mh saami_mh at ymail.com
Tue Jul 3 15:12:31 MSD 2012


notice:
JavaScript: 
var caller_id = session.getVariable("caller_id_number")
that is not wrong !!

________________________________
 From: mayamatakeshi <mayamatakeshi at gmail.com>
To: FreeSWITCH Users Help <freeswitch-users at 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 at 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 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> 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 at freeswitch.org
>http://www.freeswitchsolutions.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 at 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 at freeswitch.org
http://www.freeswitchsolutions.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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120703/b976cdba/attachment-0001.html 


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