[asterisk-app-dev] Ignoring channels in the Stasis application

Joshua Colp jcolp at digium.com
Wed Apr 20 08:06:40 CDT 2016


Nitesh Bansal wrote:
> Hello,
>
> In my ARI based application, once the channels enter the Stasis app, if my
> business logic allows, I'll accept the call, but in the -ve case, what
> is the best
> way to deal with the channel?
> Shall I explicitly remove the channel from Stasis App (how will that
> work?) or is
> there any other magically way to silently ignore the channel and pass
> the control
> back to dialplan?

There is a continue operation[1] which will return the channel to the 
dialplan. It can accept where you want to direct it.

[1] 
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-continueInDialplan

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