Re: [asterisk-users] Use AGi Commands without script in Dialplan
On Tue, Oct 9, 2018, at 1:52 PM, Yves wrote: > Am 08.10.2018 um 13:02 schrieb Antony Stone: > > On Monday 08 October 2018 at 12:44:43, Yves wrote: > > > >> I am looking for an easy way to execute any AGI Command directly from the > >> dialplan without the need to call an external script. > > The whole point of AGI is that it calls an external script in order to > > replace > > commands in the dialplan. > > > > Executing an AGI command without an external script doesn't make sense. > > > > > > Antony. > > > Hi Antony, > > thanks for your answer, even if it is a bit disappointing for me. I > understand the point... but... > why aren´t then all AGI-Commands also available as Dialplan Functions? > I can only find a small amount of functions for the dialplan that could > be seen as an equivalent > or near-equivalent of an AGI Command... I looked at the AGI command list and didn't see any that weren't possible in dialplan where it made sense. Do you have further examples? -- 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 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Use AGi Commands without script in Dialplan
On Tuesday 09 October 2018 at 18:52:59, Yves wrote: > Am 08.10.2018 um 13:02 schrieb Antony Stone: > > On Monday 08 October 2018 at 12:44:43, Yves wrote: > >> I am looking for an easy way to execute any AGI Command directly from > >> the dialplan without the need to call an external script. > > > > The whole point of AGI is that it calls an external script in order to > > replace commands in the dialplan. > > > > Executing an AGI command without an external script doesn't make sense. > > Hi Antony, > > thanks for your answer, even if it is a bit disappointing for me. I > understand the point... but... > why aren´t then all AGI-Commands also available as Dialplan Functions? Good question. Many would be very useful, I'm sure. > I can only find a small amount of functions for the dialplan that could > be seen as an equivalent or near-equivalent of an AGI Command... Well, I can't give an answer to that, because I'm neither a developer nor an interface designer for Asterisk. I do think a lot of things could be made more consistent between related ways of doing things (for example, voicemail can be stored in an ODBC database - why not call recordings (without a lot of tedious fiddling about to make it just about work) too?). Maybe someone with better knowledge of the design choices behind such parts of Asterisk can answer, or maybe it's worth putting in a feature request for some sort of AGI dialplan command, to use AGI functions directly.? Regards, Antony. -- "Can you keep a secret?" "Well, I shouldn't really tell you this, but... no." Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Use AGi Commands without script in Dialplan
Am 08.10.2018 um 13:02 schrieb Antony Stone: On Monday 08 October 2018 at 12:44:43, Yves wrote: I am looking for an easy way to execute any AGI Command directly from the dialplan without the need to call an external script. The whole point of AGI is that it calls an external script in order to replace commands in the dialplan. Executing an AGI command without an external script doesn't make sense. Antony. Hi Antony, thanks for your answer, even if it is a bit disappointing for me. I understand the point... but... why aren´t then all AGI-Commands also available as Dialplan Functions? I can only find a small amount of functions for the dialplan that could be seen as an equivalent or near-equivalent of an AGI Command... thank you, Yves -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Use AGi Commands without script in Dialplan
Am 09.10.2018 um 13:56 schrieb Joshua Colp: 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 Hi, thank you, great to have a replacement for this particular function. Yves -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Use AGi Commands without script in Dialplan
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 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Use AGi Commands without script in Dialplan
On Monday 08 October 2018 at 12:44:43, Yves wrote: > I am looking for an easy way to execute any AGI Command directly from the > dialplan without the need to call an external script. The whole point of AGI is that it calls an external script in order to replace commands in the dialplan. Executing an AGI command without an external script doesn't make sense. Antony. -- There's a good theatrical performance about puns on in the West End. It's a play on words. Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Use AGi Commands without script in Dialplan
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. Thank you, Yves -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users