<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 2019-01-02 4:23 p.m., Sungtae Kim
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d3ff1b36-a624-4c28-165e-fb1c05809823@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="user-content-block" style="margin: 0px; padding: 0px;
overflow: auto hidden; color: rgb(51, 51, 51); font-family:
Arial, sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-style: initial;
text-decoration-color: initial;">
<p style="margin: 0px; padding: 0px;">Hi, Asterisk team,</p>
<p style="margin: 10px 0px 0px; padding: 0px;">I'm thinking
about adding the new feature for the Asterisk.<br>
It's "Adding Resource item for subscription".</p>
<p style="margin: 10px 0px 0px; padding: 0px;">Purpose:<br>
Currently, the ARI subscription supports 3 types of
subscriptions.<br>
Channels, Bridges, Endpoints.<br>
It's a good enough to see and check to what/how/where the
channels is going.</p>
<p style="margin: 10px 0px 0px; padding: 0px;">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.</p>
<p style="margin: 10px 0px 0px; padding: 0px;">I would like to
add the 1 more subscription type which is "Resources".<br>
This feature is designed for sending/receiving the module's
notification messages.</p>
<p style="margin: 10px 0px 0px; padding: 0px;">AS-IS</p>
<div class="preformatted panel" style="margin: 9px 0px; padding:
0px; border: 1px solid rgb(204, 204, 204); background:
rgb(245, 245, 245); font-size: 12px; line-height: 1.33333;
font-family: monospace; border-radius: 3px;">
<div class="preformattedContent panelContent" style="margin:
0px; padding: 9px 12px;">
<pre style="margin: 0px; padding: 0px; max-height: 30em; overflow: auto; white-space: pre; overflow-wrap: normal; word-break: normal;">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)
</pre>
</div>
</div>
<p style="margin: 10px 0px 0px; padding: 0px;">TO-BE</p>
<div class="preformatted panel" style="margin: 9px 0px; padding:
0px; border: 1px solid rgb(204, 204, 204); background:
rgb(245, 245, 245); font-size: 12px; line-height: 1.33333;
font-family: monospace; border-radius: 3px;">
<div class="preformattedContent panelContent" style="margin:
0px; padding: 9px 12px;">
<pre style="margin: 0px; padding: 0px; max-height: 30em; overflow: auto; white-space: pre; overflow-wrap: normal; word-break: normal;">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)
</pre>
</div>
</div>
<p style="margin: 10px 0px 0px; padding: 0px;">Resources:<br>
Resources items would be the name of each modules. By
subscribing the modules, it will receive the each modules's
event/notification ARI messages.</p>
<p style="margin: 10px 0px 0px; padding: 0px;">For example, if
the ARI application subscribing the app_queue resource, the
application will be received below ARI events.<br>
QueueCallerJoin, QueueCallerAbandon, ...</p>
</div>
</blockquote>
<br>
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.<br>
<br>
<a class="moz-txt-link-freetext"
href="https://github.com/wazo-pbx/wazo-res-stasis-amqp"
moz-do-not-send="true">https://github.com/wazo-pbx/wazo-res-stasis-amqp</a><br>
<br>
Sylvain<br>
</body>
</html>