Hi Guys,
Im trying to previne problems with recorders in my asterisk, my dialplan is all using ARI reading de events and doing what i have to do.
But now im trying to read two specifie events RecordingStarted and RecordingFinished and for those cases i ever receive two simultaneous events with the same information.
I am starting the recorder on a bridge with two channels, i tried start de recorder without channels to see whats happen but the same occurre.
In the ari debug i see two events , i have just one application registred on ARI.
ARI DEBUG:
<— Sending ARI event to 127.0.0.1:47266 —>
{
“type”: “RecordingFinished”,
“timestamp”: “2022-03-16T09:27:20.443-0300”,
“recording”:
{ “name”: “temp/0500000012347491424898”, “format”: “wav”, “state”: “done”, “target_uri”: “bridge:adb4343c-e46b-465a-ad80-cc2d1b3d1f8e”, “duration”: 19 }
,
“asterisk_id”: “08:00:27:8e:4e:31”,
“application”: “dialer”
}
<— Sending ARI event to 127.0.0.1:47266 —>
{
“type”: “RecordingFinished”,
“timestamp”: “2022-03-16T09:27:20.443-0300”,
“recording”:
{ “name”: “temp/0500000012347491424898”, “format”: “wav”, “state”: “done”, “target_uri”: “bridge:adb4343c-e46b-465a-ad80-cc2d1b3d1f8e”, “duration”: 19 }
,
“asterisk_id”: “08:00:27:8e:4e:31”,
“application”: “dialer”
The problem with this is that I can’t tell the events apart and I double-flow for those events.
This is normal ? Why does it happen?
Environment:
Asterisk 18.6.0 running on CentOS 7.
I have an application with python registring a app on asterisk to read events and send de ARI commands