[asterisk-app-dev] Rename ChannelUserevent to Userevent in ARI?
Scott Griepentrog
sgriepentrog at digium.com
Fri Apr 18 11:11:00 CDT 2014
While working on https://issues.asterisk.org/jira/browse/ASTERISK-22697 which
adds the ability to raise an arbitrary user defined event message from ARI,
I have run into a question of backwards compatibility on the naming of the
event.
The existing Dialplan Userevent() application is always associated with the
channel the dialplan is executing on - thus it signals to AMI Event:
ChannelUserevent and provides details on the channel, along with the
arbitrary event name specified, and any additional name/value arguments.
It also signals the same ChannelUserevent to ARI with the same information.
When raising a user event through ARI, the URL
/applications/{applicationName}/user/{eventName} will be used, and
additional name/value arguments can be specified, along with any number of
channel, bridge, or endpoints identifiers. This will be signalled to the
stasis app, which will be received by that app and any others subscribed to
it. If at least one channel is given, the AMI Event ChannelUserevent will
also be signalled, so as to be compatible with the existing AMI event.
The question I have then is this: Because the User event is being expanded
in ARI to allow for signalling without an associated channel, it's no
longer appropriate to call it "ChannelUserevent". I think it should be
renamed "UserEvent", although only within ARI (AMI still uses
ChannelUserevent, and wont be raised without a channel). A dialplan
UserEvent() will still raise AMI ChannelUserevent and also ARI Userevent
both with a single channel.
Any thoughts on this?
Is there anyone using ChannelUserevent in ARI that would be affected by
this?
Is it a potential source of confusion to have two different names in two
API's for the same event?
Thanks,
--
[image: Digium logo]
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20140418/203a2f51/attachment.html>
More information about the asterisk-app-dev
mailing list