Good, I'm doing a query to show all the missed calls that arrive to me in Asterisk in the last hour, but I find myself with the following problem:
If I receive 2 calls, one of them not answered and the other answered, my query shows me the unanswered, I would like it to only show me those that have not really been answered, in that interval of time.
SELECT
calldate as FECHA_LLAMADAS,
clid as CLIENTE,
disposition as ESTADO
FROM
cdr
WHERE
calldate >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND
disposition="NO ANSWER"