[asterisk-bugs] [JIRA] (ASTERISK-29972) Duplicated ARI events

Vitor Gomes Faria (JIRA) noreply at issues.asterisk.org
Wed Mar 16 08:02:07 CDT 2022


Vitor Gomes Faria created ASTERISK-29972:
--------------------------------------------

             Summary: Duplicated ARI events
                 Key: ASTERISK-29972
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29972
             Project: Asterisk
          Issue Type: Information Request
      Security Level: None
          Components: Applications/General
    Affects Versions: 18.6.0
         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.
            Reporter: Vitor Gomes Faria


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?



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list