1b.app
Link copied -

Listen to call recording

Hello!
Asterisk is located on the same server as OneBox, events are transmitted to OneBox by PUSH requests.
Audio recordings are created in the form [datetime]-[from]-[to].wav (2021.04.22 15:47:04-102-104.wav) and are located on the same server as OneBox.
The setting "Parse audio recordings locally from storage" is enabled in the integration
How to listen to these audio recordings in My Events:
Where exactly do you need to put them?
- or do you need to pass an additional parameter path (the path of the audio recording) to PUSH?
Original question is available on version: ru

Answers:

Good afternoon.

Alexander wrote:
- or do you need to pass an additional parameter path (the path of the audio recording) to PUSH?

Exactly. The path to the file must be passed as a parameter in the push request.
22.04.2021, 17:43
Original comment available on version: ru


Tasun Sergey Vladimirovich wrote:
Exactly. The path to the file must be passed as a parameter in the push request.
today, 17:43

- I tried to pass the path with the file name, below is part of the log:
[path] => /media/calls/2021.04.22 23:25:52-101-102.wav
[filename] => 2021.04.22 23:25:52-101-102.wav
- also passed only the path without the file name:
[path] => /media/calls/
[filename] => 2021.04.22 23:45:38-101-102.wav
- I tried different parsing settings in the integration..
But in the end I get "Sound recording is temporarily unavailable."
What am I doing wrong?
22.04.2021, 23:55
Original comment available on version: ru

[datetime]-[from]-[to].wav (2021.04.22 15:47:04-102-104.wav) - this is used when creating events from ftp record files.
If you send pushes to a box, then events are created based on the data you sent.
You pass filename with or without a path.
In the integration settings there are checkboxes that indicate where to read locally or ftp, take the path or not.
filename=/var/spool/asterisk/monitor/2016-11/28/20161128122129-401-380979922666.wav
I don't know where you set everything up and how you already have it set up.
Therefore, the answers are general.
23.04.2021, 00:18
Original comment available on version: ru

Whether I don’t understand something, whether something doesn’t work as it should.
I give examples:
- here are the current integration settings (tried different options)
- here is the log after the call
- here is the resulting entry
- here is the result
26.04.2021, 17:02
Original comment available on version: ru

We also have this happen "The entry is temporarily unavailable", but if you reload the page several times, the entry miraculously appears
27.04.2021, 09:04
Original comment available on version: ru


Evgeny Kruglov wrote:
We also have this happen "The entry is temporarily unavailable", but if you reload the page several times, the entry miraculously appears

If everything was so simple - I think I would not write here.
The page was repeatedly reloaded, cookies were cleaned, the web server was booted, ... - the same result.
That is, the settings I specified are correct, but you need to reload the page - perhaps the entry will appear?
27.04.2021, 14:34
Original comment available on version: ru

We also have this checkbox
29.04.2021, 12:20
Original comment available on version: ru

Good evening.
The file is not available because there is a check (security) in the system that prohibits access to files located
outside the project root.
To make it work, there are two options:
- you can modify the setting that will disable this check;
- or create a link in the media/ folder (located in the root of the project, user files are stored there)
to the records directory.
In push notifications, in the [filename] parameter, you need to pass the file and the path by reference to the media/ folder
as an example:
/var/www/box/data/www/crm.extraparts.com.ua/media/reccalls/20210429085737-38066451765...
The [path] parameter does not need to be passed, it is not processed and is not written anywhere.
29.04.2021, 22:35
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment