[asterisk-bugs] [JIRA] (ASTERISK-28313) ARI: userevents should be delivered via AMI too

Stefan Repke (JIRA) noreply at issues.asterisk.org
Fri Mar 1 07:00:49 CST 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246403#comment-246403 ] 

Stefan Repke commented on ASTERISK-28313:
-----------------------------------------

Thank you Joshua for sharing your thoughts.
You are right: userevents that are created in the dialplan by the application {{UserEvent}} are always related to a channel.
But you can also create them via AMI by the manager action {{UserEvent}} -- optionally related to a channel (by specifying {{channel}}/{{uniqueId}})!

---

In our application, all clients have an AMI connection. Over the years, many parts of inter client communication is based on userevents created by AMI action.
We have like 100 different userevent types and most of them are not related to a channel.

This is the reason why I expect the ARI command {{userEvent}} to deliver all userevents via AMI too -- regardless of being related to a channel/bridge/etc.

---

Regarding submission of a patch: 
Actually, I'm a Java pro with only theoretical expertise in C. I can try to fix this, but I can't promise ... ;-)

> ARI: userevents should be delivered via AMI too
> -----------------------------------------------
>
>                 Key: ASTERISK-28313
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28313
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_ari_events
>    Affects Versions: 13.8.2, 13.24.1, 16.1.1
>            Reporter: Stefan Repke
>            Assignee: Stefan Repke
>            Severity: Minor
>
> ARI userevents (via POST /ari/events/user/\{eventName\}) are distributed via AMI if and only if a channel is set as source.
> In order to test it:
> 1. Listen to AMI
> 2. Create an ARI application
> 3a. Send userevent (via ARI; to the application) with channel source 
> 3b. Send userevent (via ARI; to the application) with bridge source 
> 3c. Send userevent (via ARI; to the application) with endpoint source 
> 3d. Send userevent (via ARI; to the application) *without* source
> Results:
> All userevents were delivered to the ARI application.
> Only the userevent from case *3a* was delivered to the AMI listener.
> Expected results:
> All userevents should be delivered to the ARI application *and AMI listeners*.



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



More information about the asterisk-bugs mailing list