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

BJ Weschke bweschke at btwtech.com
Tue Apr 12 09:34:36 CDT 2016





On April 12, 2016 at 10:33:27 AM, Joshua Colp (jcolp at digium.com) wrote:

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. 


Which is really what ARI is supposed to be about in the first place, no?





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

I'm down with it. 
+1 here too!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20160412/784089be/attachment.html>


More information about the asterisk-app-dev mailing list