CDR(Feld
)
Liest oder setzt CDR[119]-Felder. Feld
ist eines der folgenden (wenn
nicht anders angegeben ist nur Lesen möglich):
clid
src
dst
dcontext
channel
dstchannel
lastapp
lastdata
start
answer
end
duration
billsec
disposition
ANSWERED
, NO
ANSWER
, BUSY
oder
FAILED
amaflags
DEFAULT
(System-Default),
BILLING
(zur Abrechnung),
DOCUMENTATION
(zur Dokumentierung) oder
OMIT
(keine Aufzeichnung). (Manchmal findet man
statt BILLING
und OMIT
auch die
Angaben BILL
und IGNORE
- evtl.
abhängig von der Asterisk-Version)accountcode
uniqueid
userfield
; foo auf die Dauer des Anrufs setzen: exten => 123,1,Set(foo=${CDR(duration)}) ; das User-Feld auf "meine Infos" setzen: exten => 123,1,Set(CDR(userfield)=meine Infos)
Interner Hilfetext zu dieser Applikation in Asterisk 1.4: -= Info about function 'CDR' =- [Syntax] Here is a list of all the available cdr field names: clid lastdata disposition src start amaflags dst answer accountcode dcontext end uniqueid dstchannel duration userfield lastapp billsec channel All of the above variables are read-only, except for accountcode, userfield, and amaflags. You may, however, supply a name not on the above list, and create your own variable, whose value can be changed with this function, and this variable will be stored on the cdr. raw values for disposition: 1 = NO ANSWER 2 = BUSY 3 = FAILED 4 = ANSWERED raw values for amaflags: 1 = OMIT 2 = BILLING 3 = DOCUMENTATION [Synopsis] Gets or sets a CDR variable [Description] Options: 'r' searches the entire stack of CDRs on the channel 'u' retrieves the raw, unprocessed value For example, 'start', 'answer', and 'end' will be retrieved as epoch values, when the 'u' option is passed, but formatted as YYYY-MM-DD HH: MM:SS otherwise. Similarly, disposition and amaflags will return their raw integral values. Differenz zum internen Hilfetext in Asterisk 1.2: 5,26c5 < Here is a list of all the available cdr field names: < clid lastdata disposition < src start amaflags < dst answer accountcode < dcontext end uniqueid < dstchannel duration userfield < lastapp billsec channel < All of the above variables are read-only, except for accountcode, < userfield, and amaflags. You may, however, supply < a name not on the above list, and create your own < variable, whose value can be changed with this function, < and this variable will be stored on the cdr. < raw values for disposition: < 1 = NO ANSWER < 2 = BUSY < 3 = FAILED < 4 = ANSWERED < raw values for amaflags: < 1 = OMIT < 2 = BILLING < 3 = DOCUMENTATION < --- > CDR(<name>[|options]) 32,38c11 < Options: < 'r' searches the entire stack of CDRs on the channel < 'u' retrieves the raw, unprocessed value < For example, 'start', 'answer', and 'end' will be retrieved as epoch < values, when the 'u' option is passed, but formatted as YYYY-MM-DD H H:MM:SS < otherwise. Similarly, disposition and amaflags will return their ra w < integral values. --- > Option 'r' searches the entire stack of CDRs on the channel |