Re: [asterisk-users] Recharge Dial Limit....?

2008-07-15 Thread Matt Riddell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Douglas Garstang wrote:
 Thanks, but how does that extend the core functionality of Dial()? If Dial() 
 can't do it, how does a wrapper do it?

Did you see the patch that someone pointed out in your last
conversation?  That does exactly that.

If you didn't want a patched system you could do it the same as I did
(albeit a number of years ago) for call shops.

When a person walks in they pay $5 (or whatever at the desk).

You update the db and assign them a phone.

A second process is connected to Asterisk via the manager for call control.

It checks the DB every few seconds, and updates the credit based on how
long the person has been talking and the rate to that destination.

They can add more money at any time, and the DB value is updated.

When they run out of credit the call is killed via the manager.

- --
Kind Regards,

Matt Riddell
Director
___

http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIfVTBDQNt8rg0Kp4RAjbLAKCGQjQCFP4dZT7GMjCSomNmUKHlKQCdH+EW
Rf8imcVun0O2IMH47zwylfg=
=nmoF
-END PGP SIGNATURE-

___
-- 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


[asterisk-users] Recharge Dial Limit....?

2008-07-11 Thread Douglas Garstang
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.


  ___
-- 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

Re: [asterisk-users] Recharge Dial Limit....?

2008-07-11 Thread Steve Totaro
On Fri, Jul 11, 2008 at 7:12 PM, Douglas Garstang [EMAIL PROTECTED] 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


Re: [asterisk-users] Recharge Dial Limit....?

2008-07-11 Thread Douglas Garstang
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 [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@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 [EMAIL PROTECTED] 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



  ___
-- 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