Here's an interesting challange. I need to implement a calling card application, where I call the Dial() command and pass it (L)imit information. Nothing difficult about that. Except it is a requirement that rather than ending the call when the limit is reached, the user gets the option to recharge their account. Now, since the dial() command will just end the call when the limit has been reached, how could I possibly do this? The only way I can think of is to have another system send Asterisk a SIP reinvite before the call ends, and direct the media somewhere else so that we can drop into a new IVR and let them top off their account. A reinvite would have to go to the remote party too, so that they could listen to music on hold while the caller was topping off their account. It just occurred to me that this may not work. The (L)imit information passed to the Dial application has not changed. The Dial() application would still end the call. Ideas? Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080711/99243618/attachment.htm
On Fri, Jul 11, 2008 at 7:12 PM, Douglas Garstang <dougmig33 at yahoo.com> wrote:> Here's an interesting challange. > > I need to implement a calling card application, where I call the Dial() > command and pass it (L)imit information. Nothing difficult about that. > Except it is a requirement that rather than ending the call when the limit > is reached, the user gets the option to recharge their account. Now, since > the dial() command will just end the call when the limit has been reached, > how could I possibly do this? > > The only way I can think of is to have another system send Asterisk a SIP > reinvite before the call ends, and direct the media somewhere else so that > we can drop into a new IVR and let them top off their account. A reinvite > would have to go to the remote party too, so that they could listen to music > on hold while the caller was topping off their account. > > It just occurred to me that this may not work. The (L)imit information > passed to the Dial application has not changed. The Dial() application would > still end the call. > > Ideas? > > Doug.Use an AGI, dissect ASTCC or ASTPP AGIs, all the goodies you want are in there. Thanks, Steve T
Thanks, but how does that extend the core functionality of Dial()? If Dial() can't do it, how does a wrapper do it? ----- Original Message ---- From: Steve Totaro <stotaro at totarotechnologies.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Sent: Friday, July 11, 2008 4:29:50 PM Subject: Re: [asterisk-users] Recharge Dial Limit....? On Fri, Jul 11, 2008 at 7:12 PM, Douglas Garstang <dougmig33 at yahoo.com> wrote:> Here's an interesting challange. > > I need to implement a calling card application, where I call the Dial() > command and pass it (L)imit information. Nothing difficult about that. > Except it is a requirement that rather than ending the call when the limit > is reached, the user gets the option to recharge their account. Now, since > the dial() command will just end the call when the limit has been reached, > how could I possibly do this? > > The only way I can think of is to have another system send Asterisk a SIP > reinvite before the call ends, and direct the media somewhere else so that > we can drop into a new IVR and let them top off their account. A reinvite > would have to go to the remote party too, so that they could listen to music > on hold while the caller was topping off their account. > > It just occurred to me that this may not work. The (L)imit information > passed to the Dial application has not changed. The Dial() application would > still end the call. > > Ideas? > > Doug.Use an AGI, dissect ASTCC or ASTPP AGIs, all the goodies you want are in there. Thanks, Steve T _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080711/86586b0f/attachment.htm