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.

Zeeshan A Zakaria

--
Sent from my Android phone with K-9 Mail.

On 2010-06-03 9:35 AM, "Necati Demir" <[email protected]> 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

Reply via email to