[asterisk-users] how to get call duration

Necati Demir ndemir at demir.web.tr
Fri Jun 4 05:54:01 CDT 2010


First thing which comes to mind is:

> exten => h,1,Noop( >>> Call duration was ${CDR(duration)} seconds)
> exten => h,n,Hangup()
>
> There is also a variable ${CDR(billsec)} which shows only the duration the
> call was actually connected between two channels, however this may not match
> with the duration of your provider.
>

Is there another way for getting a reliable call duration.
${CDR(duration)} show more duration than actual, and ${CDR(billsec)} shows
always 0.

--
> Sent from my Android phone with K-9 Mail.
>
> On 2010-06-03 9:35 AM, "Necati Demir" <ndemir at demir.web.tr> wrote:
>
> Hello,
>
> I want to ask how to get call duration.
>
> --
> Necati DEMİR
> http://demir.web.tr
> http://friendfeed.com/ndemir
> ndemir ~ demir.web.tr
> ---------------------------------------
>
> --
>
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Necati DEMİR
http://demir.web.tr
http://friendfeed.com/ndemir
ndemir ~ demir.web.tr
---------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100604/74a7c254/attachment.htm 


More information about the asterisk-users mailing list