I have been writing a lot of AGI programs in C with good success. I would like somehow to have an AGI program continue in the background while the pbx execution returns to the dialplan and continues. Is this possible? I was thinking that perhaps I could fork or create another thread within the AGI prog. The reason I want to do so is in order to monitor external information (e.g. credit limit and realtime cost of the current call) and then perhaps hang up the call, transfer it or play an announcement to it. I'm aware I could do this with a separate control program using the Manager API, but I like the idea of it being done per-call on demand using AGI if possible. Can anyone suggest any ideas or better techniques? Thanks in advance! Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org
Hi Tony I have the same problem you have, i think what would you like to do (as me), is to update in a realtime basis credit for prepaid customer, look what I posted today, its from ramcluster and the threat is billing realtime, this is what i discover right now. Hope it help you 2006/4/25, Tony Mountifield <tony@softins.clara.co.uk>:> I have been writing a lot of AGI programs in C with good success. > I would like somehow to have an AGI program continue in the background > while the pbx execution returns to the dialplan and continues. Is this > possible? I was thinking that perhaps I could fork or create another > thread within the AGI prog. > > The reason I want to do so is in order to monitor external information > (e.g. credit limit and realtime cost of the current call) and then > perhaps hang up the call, transfer it or play an announcement to it. > > I'm aware I could do this with a separate control program using the > Manager API, but I like the idea of it being done per-call on demand > using AGI if possible. > > Can anyone suggest any ideas or better techniques? > > Thanks in advance! > Tony > -- > Tony Mountifield > Work: tony@softins.co.uk - http://www.softins.co.uk > Play: tony@mountifield.org - http://tony.mountifield.org > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Awhile back I remember someone posted a SMS to DISA AGI script. I searched the archives and found nothing...anyone out there remember?
Deadagi? |-----Original Message----- |From: asterisk-users-bounces@lists.digium.com |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of |Tony Mountifield |Sent: Tuesday, April 25, 2006 5:17 AM |To: asterisk-users@lists.digium.com |Subject: [Asterisk-Users] Background asynchronous AGI | |I have been writing a lot of AGI programs in C with good success. |I would like somehow to have an AGI program continue in the |background while the pbx execution returns to the dialplan and |continues. Is this possible? I was thinking that perhaps I |could fork or create another thread within the AGI prog. | |The reason I want to do so is in order to monitor external |information (e.g. credit limit and realtime cost of the |current call) and then perhaps hang up the call, transfer it |or play an announcement to it. | |I'm aware I could do this with a separate control program |using the Manager API, but I like the idea of it being done |per-call on demand using AGI if possible. | |Can anyone suggest any ideas or better techniques? | |Thanks in advance! |Tony |-- |Tony Mountifield |Work: tony@softins.co.uk - http://www.softins.co.uk |Play: tony@mountifield.org - http://tony.mountifield.org |_______________________________________________ |--Bandwidth and Colocation provided by Easynews.com -- | |Asterisk-Users mailing list |To UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users | |