[asterisk-app-dev] Mapping ARI events to imperative call flows
David M. Lee
dlee at digium.com
Wed Oct 16 14:17:48 CDT 2013
Alistair Cunningham wrote:
> If implementing this using ARI, we're going to get events such as
> PlaybackFinished, ChannelDtmfReceived, and Hangup. When this happens,
> how do we know where we are in the call flow and what to do next?
> Several options spring to mind:
The great thing about ARI is that any of those methods could work. You
can use whatever is appropriate for you and your team.
Since the ARI interface is inherently asynchronous and event driven,
you'll probably find an event driven state machine easier to deal
with. But there's no reason why it has to be that way.
It will be interesting to see how apps get coded up as people start
really using the API.
--
David M. Lee
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-app-dev
mailing list