[Freeswitch-users] Calculate the Call Duration ( BillSec)

Sergey Okhapkin sos at sokhapkin.dyndns.org
Thu Mar 18 08:46:11 PDT 2010


<action application="set" data="process_cdr=false"/>

On Thursday 18 March 2010, Aloysius Lloyd wrote:
> Thank you for the suggestion. Yes I went to the direction then Stop. How to
> handle Hangup actions for every call?
> 
> For Example : I do not want to calculate the duration for all the calls or
> execute actions for all the calls. I need calculate for particular calls
> only.I tested the following ,* it execute for every calls hangup*. How to
> control or How to execute in some conditions.
> 
> 
> cdr_csv.conf.xml
> 
> 
> <param name="default-template" value="lua"/>
> 
> <template name="lua">${lua(onhangup.lua)}</template>
> 
> On Thu, Mar 18, 2010 at 11:16 AM, Michael Collins <msc at freeswitch.org>wrote:
> > On Thu, Mar 18, 2010 at 7:38 AM, Aloysius Lloyd 
<lloyd.aloysius at gmail.com>wrote:
> >> Hi All,
> >>
> >> The following lua script for calculate the call duration. But the issue
> >> here , the duration is calculating from the outbound initiate time.
> >>
> >> How to get the call answer time?
> >
> > If you're trying to do billing in-line you might as well stop right now
> > and read the CDRs page on the wiki. Trying to calculate this from inside
> > the session is silly.
> > -MC
> >
> >
> > _______________________________________________
> > 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
> 





More information about the FreeSWITCH-users mailing list