A
A
Alexander2017-03-12 15:43:54
Asterisk
Alexander, 2017-03-12 15:43:54

How to solve the problem with recording conversations received from the queue to the operator?

Good day!
FreePBX 2.11.0.42
Asterisk (Ver. 11.20.0)
Faced the following situation: There is one queue (900) where all incoming calls arrive and are distributed among operators. When any operator picks up the phone, and then hangs up after the conversation, the following entry appears in the CDR:

{"calldate":"2017-03-11 15:59:00","src":"+79652931158","dst":"103","duration":"25","billsec":"21","uniqueid":"1489247940.5","recordingfile":""}

{"calldate":"2017-03-11 15:58:46","src":"+79652931158","dst":"900","duration":"39","billsec":"39","uniqueid":"1489247926.1","recordingfile":"\/var\/spool\/asterisk\/monitor\/2017\/03\/11\/force-450926-unknown-20170311-185846-1489247926.1.wav"}

From which it can be seen that there is a record with the conversation "subscriber-queue (900)", but there is no record of the conversation "subscriber-operator (103)".
How to make it so that instead of an empty recordingfile value in the line with dst 103 there is a path to the recording file, which has a uniqueid 1489247940.5 in the file name?
It turns out that a file with such an id does not exist, but an entry with such an id exists in the CDR table.
We use CRM (AmoCRM), which binds the user to a SIP number, and the call records are uploaded to the CRM. Accordingly, in this case, information about the conversation is unloaded, but without an audio file.
Call recording is forced everywhere: on the incoming route from the sip provider, on extensions, on the queue.
Dear experts, please tell me how to make him write a file for such a case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-03-12
@mrcivic

I solved the problem as follows: Disabled forced recording in the queue settings (Queue), enabled the [Always] switch in the Recording Options section in the extension settings, which is in the list of static agents of the queue, and enabled forced recording on the main incoming route (Inbound Routes).

{"calldate":"2017-03-12 14:05:41","src":"+79991062230","dst":"103","duration":"13","billsec":"11","uniqueid":"1489327541.95","recordingfile":"force-450926-unknown-20170312-170527-1489327526.93.wav"},

{"calldate":"2017-03-12 14:05:26","src":"+79991062230","dst":"900","duration":"28","billsec":"27","uniqueid":"1489327526.93","recordingfile":"force-450926-unknown-20170312-170527-1489327526.93.wav"}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question