[asterisk-dev] Adding ARI subscription type for module's notification event
Sylvain Boily
sylvain at wazo.io
Fri Jan 25 09:16:41 CST 2019
Hello,
On 2019-01-02 4:23 p.m., Sungtae Kim wrote:
>
> Hi, Asterisk team,
>
> I'm thinking about adding the new feature for the Asterisk.
> It's "Adding Resource item for subscription".
>
> Purpose:
> Currently, the ARI subscription supports 3 types of subscriptions.
> Channels, Bridges, Endpoints.
> It's a good enough to see and check to what/how/where the channels is
> going.
>
> But using the ARI, it's not an easy to check the resource(module)s.
> Simply, the ARI does not support module's notification message sending
> and receiving.
>
> I would like to add the 1 more subscription type which is "Resources".
> This feature is designed for sending/receiving the module's
> notification messages.
>
> AS-IS
>
> asterisk*CLI> ari show app pchero_voip
> Name: pchero_voip
> Debug: No
> Subscription Model: Global Resource Subscription
> Subscriptions: 3
> Channels:
> __AST_CHANNEL_ALL_TOPIC (1)
> Bridges:
> __AST_BRIDGE_ALL_TOPIC (1)
> Endpoints:
> __AST_ENDPOINT_ALL_TOPIC (1)
>
> TO-BE
>
> asterisk*CLI> ari show app pchero_voip
> Name: pchero_voip
> Debug: No
> Subscription Model: Global Resource Subscription
> Subscriptions: 4
> Channels:
> __AST_CHANNEL_ALL_TOPIC (1)
> Bridges:
> __AST_BRIDGE_ALL_TOPIC (1)
> Endpoints:
> __AST_ENDPOINT_ALL_TOPIC (1)
> Resources:
> __AST_RESOURCE_ALL_TOPIC (1)
>
> Resources:
> Resources items would be the name of each modules. By subscribing the
> modules, it will receive the each modules's event/notification ARI
> messages.
>
> For example, if the ARI application subscribing the app_queue
> resource, the application will be received below ARI events.
> QueueCallerJoin, QueueCallerAbandon, ...
>
If your use case is only to receive events from AMI apps, we wrote this
module who push stasis events (AMI, ARI, Channels) to a message bus
(rabbitmq). Maybe it can help you.
https://github.com/wazo-pbx/wazo-res-stasis-amqp
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20190125/2a98ccff/attachment.html>
More information about the asterisk-dev
mailing list