[Asterisk-Users] astcc: need partial pin code

JP Carballo lists at netfone2x.com
Thu Apr 27 22:05:45 MST 2006


Ronald Wiplinger wrote:

> I want to use something like:
> What is your card number:   <user keys in the number>
> Enter your pin:    <user enter a long pin>
> Enter your destination phone number:  <user enters the destination 
> phone number>
>
> Is there a code snip available for that?

Not that I know of.
Just juggle the way the routines are called.
Everything you need (or most of them anyway) is in the code.

>
> Keyin needs always more time, we need to allow longer spaces between 
> the digits, therefore we need to allow the # to finish the dialstring 
> faster. I wonder if we can use one dialstring for all:  
> cardnumber*pin*destination-number

If you need a partial *anything*, be it a pin or a card number, you can 
use the perl routine substr() to retrieve as many characters of the 
string as you need.

>
> How can a user end the call and dial a new number, without hanging up?
>
In my system, the user just presses "*" and they get dumped back into 
the IVR.
Since the current cardnumber is stored in a variable, it does not need 
to be entered again to make another call.

> The user has usually a desk phone (=card number), and this dialin 
> should work parallel, but of course it assumes still that only one 
> card is in use.


-- 
JP Carballo

http://www.netfone2x.com
Bringing the world closer.

It might look like I'm doing nothing, but at the cellular level, I'm really quite busy. 




More information about the asterisk-users mailing list