I’m not sure if what I want to do can be done at least with CDR.
I want to configure a call center in with agents will earn money based on time talking with callers.
If one agent transfer call to another I need to get a line in cdr Master.csv with total time agent has been talking with caller and then another line with the transfer (call duration of the second agent)
Is CDR only write on call ends?
I have seen column “lastapp” is only showing last “Application” executed like “Dial” or “Hangup”… is it possible to generate a line for each instruction in dialplan?
For exaple for:
[from-sip]
exten => s,1,Answer
exten => s,n,GotoIfTime(9:00-14:00|mon-fri||?queue,s,1)
exten => s,n,Playback(out-of-time)
exten => s,n,Hangup
With CDR I only get or Hangup as lastapp or another thing that I cant remember but is something about call answer by an agent.
Is it possible to get something like:
caller_id,app,duration,total_duration
555,answer,1 seconds, 1 second
555,gotoiftime,1 seconds, 2 seconds
555,playback,15 seconds, 17 seconds
555,hangup,1 second, 18 seconds.
Now I just can now 1,hangup,18 seconds… can CDR or asterisk get more detailed information about transfers and actions?
Thank in advance.