[asterisk-bugs] [JIRA] (ASTERISK-28985) ari: Sends channel event to multiple applications when connecting multiple over same socket

Marcelo Garay (JIRA) noreply at issues.asterisk.org
Thu Jul 9 10:12:25 CDT 2020


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

Marcelo Garay commented on ASTERISK-28985:
------------------------------------------

OK, found the source of the problem. In my application, I'm subscribing CallControl to receive presence events like this:
https://hostname/ari/applications/CallControl/subscription?eventSource=endpoint:PJSIP/number,deviceState:PJSIP/number
You should be able to test it by including that step as #2 on your example.

If I comment out this part of my code then the events don't duplicate. Am I doing something wrong?




> ari: Sends channel event to multiple applications when connecting multiple over same socket
> -------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-28985
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28985
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_ari_events
>    Affects Versions: 17.5.1
>         Environment: Linux (centos 7.8.2003) + External custom applications interacting with Asterisk via ARI. PJSIP, and ARI with Automatic Context Creation (no dialplan).
>            Reporter: Marcelo Garay
>            Assignee: Marcelo Garay
>            Severity: Minor
>         Attachments: arilog.txt
>
>
> As described on this forum post: https://community.asterisk.org/t/ari-channel-events-subscription/84865
> Expected behavior: When multiple ARI applications subscribe to ARI events using "subscribeAll=false", only the application that originates a channel should receive channel related events (Dial, ChannelDestroyed, etc.). 
> Observed behavior: ARI generates channel related events for multiple applications, not just the one that originated the channel.



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



More information about the asterisk-bugs mailing list