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

Aloysius Lloyd lloyd.aloysius at gmail.com
Thu Mar 18 08:32:54 PDT 2010

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.


<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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100318/eac44e4f/attachment-0002.html 

More information about the FreeSWITCH-users mailing list