[Freeswitch-users] Help with lua and channel variable processing

Larry Marshall lcm at marshap.com
Sun May 31 09:50:07 PDT 2009

I would like to process the ${billsec} variable in the
conf/autoload_configs/cdr_csv.conf.xml file below, returning a different
value for the INSERT command.


I already have written a lua function which takes an integer value from
${billsec} and returns a string. It is stored in freeswitch/scripts as


Do I change the sql template below to ., ${lua(billsec)}, .?


  <configuration name="cdr_csv.conf" description="CDR CSV Format">


      <param name="default-template" value="sql"/>

      <param name="rotate-on-hup" value="true"/>

      <param name="legs" value="a"/>



      <template name="sql">INSERT INTO cdr VALUES





Thanks, Lars

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090531/756ba9f6/attachment-0002.html 

More information about the FreeSWITCH-users mailing list