Antony Stone
2021-Nov-12 22:58 UTC
[asterisk-users] Dial() after the h extension has been invoked?
On Friday 12 November 2021 at 18:18:03, Eric Wieling wrote:> On 11/12/21 12:39, Antony Stone wrote: > > On Friday 12 November 2021 at 17:36:07, Eric Wieling wrote: > >> Create a spool file from the 'h' extension to generate the call. > > > > Yes, I thought of that, but it somehow feels a bit clunky, and was hoping > > for a neater solution :) > > Dialing post call to update a database is clunky. The solutions will be > clunky too. > > I use a hangup handler with an AGI script. The script makes a database > connection to close out the call. Much cleaner.Would you care to give a little more in the way of detail? I've never used AGI, so what would your suggested solution involve? Antony. -- She did not swoon, but she did get a look on her face that said 'This conversation is over', which Jack took as a sign he was going in the right direction. - Neal Stephenson, Quicksilver Please reply to the list; please *don't* CC me.
Steve Edwards
2021-Nov-12 23:34 UTC
[asterisk-users] Dial() after the h extension has been invoked?
On Fri, 12 Nov 2021, Antony Stone wrote:> I've never used AGI, so what would your suggested solution involve?If all you need is to update/insert/delete some rows in a database, ODBC could be a solution. I prefer to do database work in an AGI. I find quoting within the database to be obtuse and fragile. Also, I find error handling better in an AGI with a real programming language. Also, also, things start with 'I just need to do x' and frequently grow to 2SLGBTQQIA+x and you will wish you started with a real programming language. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281