[asterisk-app-dev] ARI Early Bridge Development: Call Forwarding

Joshua Colp jcolp at digium.com
Tue Apr 12 09:32:44 CDT 2016


Mark Michelson wrote:

<snip>

> I would like to propose a solution to this. Instead of having Asterisk
> automatically handle call forwards when performing an ARI dial, raise an
> event stating "Outbound channel X wants to forward the call to Y". This
> way, the ARI application writer can act on this event as desired. You
> can ignore the call forward attempt altogether. You can look up who Y is
> and forward the call manually. You can check some presence database and
> forward to Y's voicemail instead of Y. You can say "screw you X" and
> forward the call to Z instead.
>
> The upsides to this are that
> 1) It places the ARI author in complete control of the destination of
> the call. Automatic behavior from Asterisk is limited, and there will be
> no surprises.
> 2) By always dialing outbound calls from the ARI application, we can
> assure that channels are being tracked as expected and there are no
> hoops that we have to jump through internally to ensure that everything
> is set up properly.
>
> The big downside I can think of is that the current ARI originate
> command does automatically perform call forwards. This would introduce
> an inconsistency in the behaviors of the two methods of making outbound
> calls.

I think while it's inconsistent the two serve different purposes. The 
existing one is very much "dial this and do stuff automagically". The 
new one is very much about giving the control to the ARI developer.

>
> What is the list's opinion on the proposal for handling call forwards in
> the new ARI dial command?

I'm down with it.

-- 
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