[asterisk-users] Use AGi Commands without script in Dialplan

Joshua Colp jcolp at digium.com
Tue Oct 9 06:56:52 CDT 2018

On Mon, Oct 8, 2018, at 7:44 AM, Yves wrote:
> Hello, everybody,
> often it is necessary to issue a single AGI command...
> How can I realize this within a normal dialplan processing without 
> having to go the circumstantial way through an AGI script every time?
> Why is it not possible to use the AGI commands like other functions 
> within the dialplan?
> Although there are many dialplan functions that can be used as a 
> substitute for one or the other AGi command, or whose results are the 
> same, but not always...
> Example:
> AGI_Command "Set Autohangup"...
> There is no way (at least of what I know) to set this AutoHangup feature 
> for a "normal" Call within the dialplan... and again, this is just an 
> example. I am looking
> for an easy way to execute any AGI Command directly from the dialplan 
> without the need to call an external script.

In particular for this it can done in dialplan using the TIMEOUT dialplan function[1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_TIMEOUT

Joshua Colp
Digium - A Sangoma Company | 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-users mailing list