All calls which are in queue or got disconnected from the queue without going to an agent its considered as answered in cdr. Is there any way to prevent or other trick to store the calls in cdrs as their exact disposition reasons?: (disposition IN (‘ANSWERED’, ‘BUSY’, ‘FAILED’, ‘NO ANSWER’, ‘CONGESTION’)).
You have to reset the CDR after you answer the call. There is also a ForkCDR applications, but I never got it to work.
Note there have been major changes in the implementation of CDRs since I did this in anger.
Alternatively, don’t answer the call, but the caller may not get comfort messags, and the network may terminate the call before it is answered.
Thanks for answering. I am not answering the call in dialplan I only set to go in queue and when the call is disconnected in queue its considered as answered in cdr. viewing this in report will confuse the report analyzer.
What report analyzer? Asterisk doesn’t come with one. If you are using FreePBX, the dialplan does answer the call, but this is the wrong place to ask about FreePBX.
If not using FreePBX, please provide the full log, at verbosity 5, or higher.
Nearly everyone using Queue() would want to do so on a channel that is already answered, as most organisations leave queues ringing for longer than the PSTN operator is prepared to withhold charging.
Also consider whether the queue log better fits your use case.
Note that Playback answers, by default. That’s normally essential for PSTN calls, as early media is not normally made available to end user callees.
I have my own custom php application for analyzing the cdrs and sending the reports on daily basis and hourly through email.
Yes (Nearly everyone using Queue() would want to do so on a channel that is already answered, as most organisations leave queues ringing for longer than the PSTN operator is prepared to withhold charging.) but the calls should be considered as not-answered/abandoned call when its getting disconnected from queue.
On Saturday 25 May 2024 at 13:14:08, neyamt via Asterisk Community wrote:
Yes (Nearly everyone using Queue() would want to do so on a channel that
is already answered, as most organisations leave queues ringing for longer
than the PSTN operator is prepared to withhold charging.) but the calls
should be considered as not-answered/abandoned call when its getting
disconnected from queue.
I think you should investigate david551’s suggestion that the Queue Log may be
better for your needs than the CDRs.
After all, the Queue Log is designed to show what happens to calls in queues.
CDRs are far more basic, and will show “Answered” if a call gets answered by
anything in the dialplan. After all, the caller has been connected to
something, even if it’s just a recorded announcement or music, and that means
(to Asterisk) that the call got answered.
Antony.
–
Angela Merkel arrives at Paris airport.
“Nationality?” asks the immigration officer.
“German,” she replies.
“Occupation?”
“No, just here for a summit conference.”
Please reply to the list;
please *don't* CC me.
@david551 and Antony,
Thank you for your suggestions. I will investigate both CDR and queue_logs to achieve my goal.
Appreciated,
Many thanks.
ResetCDR may also work, once you work out when it got answered.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.