4 msgVonage fraud controls

Prompt for a PIN number to make long distance c...
\ J French (7 Apr 2007)
. \ Humberto Figuera (7 Apr 2007)
. \ Dovid B (8 Apr 2007)
. \ Yossi Ben Hagai (8 Apr 2007)

1 msgRe: asterisk-users Digest, Vol 33, Issue 29
3 msgFollow Me and Transferring Calls
5 msgCannot compile 1.4.2 on Slackware 7
1 msgRe: asterisk-users Digest, Vol 33, Issue 28
5 msgVerizon Vonage 101
1 msgRe: asterisk-users Digest, Vol 33, Issue 27
4 msgDifferent devices for asterisk!!!
3 msgCRM integration with Asterisk
1 msgWireless Bridge for SNOM360
2 msgVoicemail from GTalk says 'from an unknown caller'
5 msgAudio Gain Settings
1 msgRe: asterisk-users Digest, Vol 33, Issue 26
1 msgYellow alarm TE110P with latest release
11 msgHow well does a celldock work with Asterisk?
44 msgVerizon-Vonage Lawsuit
6 msgBalancing the Hybrid
1 msgRe: asterisk-users Digest, Vol 33, Issue 25
2 msgSnom 320 voicemail key & MWI
Subject:Re: Prompt for a PIN number to make long distancecall?
Group:Asterisk-users
From:Yossi Ben Hagai
Date:8 Apr 2007


 


You can set up a simple mysql table with PIN-users this makes it more
extensible and you can create a simple web interface to change to pins/add
users.
after you have set up the table just use a simple IVR construct to prompt
for the PIN, fetch it from the table and authenticate it - something like
this (wrote it on my notepad so check the syntax):
exten => _XXXX,1,Noop
exten => _XXXX,2,MYSQL(Connect connid localhost changeme changeme changeme)
exten => _XXXX,3,MYSQL(Query resultid ${connid} SELECT\ pin\ from\
user_pin_table\ where\ pin=${EXTEN})
exten => _XXXX,4,MYSQL(Fetch fetchid ${resultid} pin)
exten => _XXXX,5,Authenticate(${pin})

if the auth is okay, you can fetch the username for that PIN using
Set(CDR(accountcode)=fetched_user)

Joss.


On 4/8/07, J French <hikenboots> wrote:
>
> I need to authenticate users to make long distance calls. Basically,when
> the user dials a long distance dialplan pattern, I want to prompt for his
> pin and look it up against a table of pins:usernames in a file. If it
> exists, I'll use the username in the cdr accountcode and permit the call.
> Authenticate() looked very promising nut I couldn't get the ma options to
> work. Any help is appreciated. Honestly, I'm not even sure how to read an
> external file and parse it from asterisk.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com <http://easynews.com/>--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>


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



© 2004-2008 readlist.com