[asterisk-users] What's diff between ${CDR(start)} , ${CDR(answer)} , ${CDR(calldate)}
Zhang Shukun
bitzsk at gmail.com
Fri Jun 18 22:59:36 CDT 2010
Thank you.
another quesion is i want to get ${CDR(answer)} and ${CDR(end)} in the
hangup section. i can get ${CDR(answer)} sucessfully but get
${CDR(end)} is null.
i know i can set any variable i want into CDR table if i want .
but i want to know without any setting . which variabes will set automatic?
is that all of the following(i use asterisk 1.6.2.1)?
${CDR(clid)} Caller ID
${CDR(src)} Source
${CDR(dst)} Destination
${CDR(dcontext)} Destination context
${CDR(channel)} Channel name
${CDR(dstchannel)} Destination channel
${CDR(lastapp)} Last app executed
${CDR(lastdata)} Last app's arguments
${CDR(start)} Time the call started.
${CDR(answer)} Time the call was answered.
${CDR(end)} Time the call ended.
${CDR(duration)} Duration of the call.
${CDR(billsec)} Duration of the call once it was answered.
${CDR(disposition)} ANSWERED, NO ANSWER, BUSY
${CDR(amaflags)} DOCUMENTATION, BILL, IGNORE etc
${CDR(accountcode)} The channel's account code (read-write).
${CDR(uniqueid)} The channel's unique id.
${CDR(userfield)} The channels uses specified field (read-write).
2010/6/18 Tilghman Lesher <tlesher at digium.com>:
> On Friday 18 June 2010 03:21:32 Zhang Shukun wrote:
>> hi,all
>> for a long time, i cant understand the difference between
>> ${CDR(calldate)} and ${CDR(start)} , ${CDR(answer)}
>>
>> i know ${CDR(start)} mean when a call is start. and ${CDR(answer)}
>> means when a call was pick up.
>>
>> but what's ${CDR(calldate)} mean?
>
> It could mean whatever you want. CDRs (at least the internal representation)
> have support for arbitrary additional variables. Whether a particular backend
> has support to carry those over into permanent storage is another question
> (in 1.6.2, most CDR backends have it, as long as the underlying table has a
> column to receive the data).
>
> --
> Tilghman Lesher
> Digium, Inc. | Senior Software Developer
> twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- 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
>
--
Thanks for your supporting,
have a nice day.
Sucan
More information about the asterisk-users
mailing list