[asterisk-app-dev] ARI Issues found during use

Paul Belanger paul.belanger at polybeacon.com
Thu Feb 6 10:22:39 CST 2014


On Thu, Feb 6, 2014 at 11:13 AM, David M. Lee <dlee at digium.com> wrote:
>
> On Feb 5, 2014, at 5:22 PM, Matthew Jordan <mjordan at digium.com> wrote:
>
> BridgeCreated event never gets fired as you have to subscribe to bridge
> events before you receive them. Well, as you can't subscribe to something
> before creating it, this will never be called. Should an application
> automatically be subscribed to any bridges it created?
>
>
> That's an interesting point.
>
> Currently, the response to the POST /bridges returns the Bridge data
> model that you created. I'm not sure the BridgeCreated event adds much
> value, even if we did emit it.
>
>
> Agreed. Sending an event in addition to the response is redundant.
>
The issue I see with that approach, is now you have to add logic to
publish return results from POST to the event system, if you want to
consume them some place else.  Which, I don't think exists today
witnin ARI.

-- 
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger



More information about the asterisk-app-dev mailing list