Hi All I am using prepaid auth (callingcards), the idea is for a prepaid support line. It is up and running but I have a couple of questions with regards to modifications I would like to make. When a user calls and they go through the process of entering their card number. They are then asked for a destination. What I would like to be able to do is not have it ask for a destination and automatically dial a number? At present I ask them to enter a default number when it ask for a destination and this then takes them to a queue, if someone is available it rings and goes through, if no one is available rather than sit in the queue and listen to the lovely onhold music prepaid auth comes back and says that destination is unreachable, is there a way to get it to just wait in the queue? Many Thanks In Advance Scott Pinhorne
Hi Scott, Yes, its possible pass 'm' option to Dial command for MusicOnHold If destination is unreachable, you need to get the return value of Dial and from that value you will know whether a call was connected or not. Based on that value you can execute Dial again or not. You can put everything in an AGI script. AGI is really fun ! Thanks, -- You don't have any choice, you already made it before you came here.> -----Original Message----- > From: scott@mysecretworld.co.uk > Sent: Thu, 01 Dec 2005 07:51:58 +0000 > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] prepaid application > > Hi All > > I am using prepaid auth (callingcards), the idea is for a prepaid support > line. > It is up and running but I have a couple of questions with regards to > modifications I would like to make. > > When a user calls and they go through the process of entering their card > number. > They are then asked for a destination. What I would like to be able to do > is not have it ask for a destination and automatically dial a number? > > At present I ask them to enter a default number when it ask for a > destination and this then takes them to a queue, if someone is available > it rings and goes through, if no one is available rather than sit in the > queue and listen to the lovely onhold music prepaid auth comes back and > says that destination is unreachable, is there a way to get it to just > wait in the queue? > > Many Thanks In Advance > Scott Pinhorne > > > _______________________________________________ > --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
> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of scott > Sent: Wednesday, November 30, 2005 11:52 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] prepaid application > > > Hi All > > I am using prepaid auth (callingcards), the idea is for a > prepaid support line. It is up and running but I have a > couple of questions with regards to modifications I would > like to make. > > When a user calls and they go through the process of entering > their card number. They are then asked for a destination. > What I would like to be able to do is not have it ask for a > destination and automatically dial a number?How about something like: exten => 1234567,1,read(CARDNUM,promptfile) exten => 1234567,2,agi(astcc.agi,${CARDNUM},5566) ...where "promptfile" is the name of the prompt instructing the caller to enter his account number, "...followed by the pound sign", and 5566 is the extension you want dialed after authentication. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 11/30/2005
> > > > > > Hi All > > > > I am using prepaid auth (callingcards), the idea is for a > > prepaid support line. It is up and running but I have a > > couple of questions with regards to modifications I would > > like to make. > > > > When a user calls and they go through the process of entering > > their card number. They are then asked for a destination. > > What I would like to be able to do is not have it ask for a > > destination and automatically dial a number? >I have done this exact setup for a prepaid information service. I did everything by editing astcc.agi. I also have it setup to handle three different languages. What I did for this was to edit the agi exec dial and hard code the dial number right in. I also modified the script to not disconnect a caller when their credit runs out since that is pretty rude. Email me offlist for help. Thanks, Steve
Just a quick note to say thanks to all who replied, most helpful. Thanks Again Scott scott wrote:> Hi All > > I am using prepaid auth (callingcards), the idea is for a prepaid support line. > It is up and running but I have a couple of questions with regards to modifications I would like to make. > > When a user calls and they go through the process of entering their card number. > They are then asked for a destination. What I would like to be able to do is not have it ask for a destination and automatically dial a number? > > At present I ask them to enter a default number when it ask for a destination and this then takes them to a queue, if someone is available it rings and goes through, if no one is available rather than sit in the queue and listen to the lovely onhold music prepaid auth comes back and says that destination is unreachable, is there a way to get it to just wait in the queue? > > Many Thanks In Advance > Scott Pinhorne > > > _______________________________________________ > --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