[asterisk-app-dev] ARI dial application
Joshua Colp
jcolp at digium.com
Fri Dec 19 12:01:02 CST 2014
Paul Belanger wrote:
<snip>
>
> So, how would that look in ARI?
>
> Answer channel
> invoke originate (far end answers)
> create bridge
> move channel A and B into bridge
>
> Right?
>
> Some differences I can see right from the start, in the ARI example
> caller A does not hear ringback, with app_dial they would. So my
> questions are:
>
> When does app_dial indicate ringing to the channel?
When ringing is received from the dialed end it is then indicated to the
caller within app_dial. Of course if there are multiple dialed parties
then it uses a bit more intelligence.
> When does app_dial create the bridge? Does caller A live in the bridge
> before Caller B is answered?
app_dial creates a bridge upon answer and bridges the two. HOWEVER
before the remote end has answered there is a pseudo bridge implemented
inside of app_dial which exchanges media so early media works.
>
> If you had to do this in ARI, how would you do it? Because, what I'd
> like to do, is come up with the spec for it, write it, then see about
> making a few simple demos for different languanges.
Right now you can't directly replace app_dial with an ARI equivalent
because of early media. There is no way to do anything with a channel
until it has answered and no way to exchange early media.
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-app-dev
mailing list