Josh Alberts
2005-Mar-21 12:54 UTC
[Asterisk-Users] Script to Authenticate User and Dial Out
Hello. I'm looking for a script that I can use that will ask users for a password, and then let them call any extension on the asterisk server. Does anyone know of a premade script that can do this, or a resource I could use to make my own? Thanks, Josh
Anton Krall
2005-Mar-21 14:05 UTC
[Asterisk-Users] Script to Authenticate User and Dial Out
DISA? -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Josh Alberts Sent: Lunes, 21 de Marzo de 2005 01:55 p.m. To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Script to Authenticate User and Dial Out Hello. I'm looking for a script that I can use that will ask users for a password, and then let them call any extension on the asterisk server. Does anyone know of a premade script that can do this, or a resource I could use to make my own? Thanks, Josh _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
It seems the simplest approach is to create an extension(s) with the password(s) and then if the incoming caller gets it correct, jump them to another context. Otherwise stay in the default context and give default prompts. I suppose you can find a way to read the password from a DB or file or as you say, put it in a script. [maincontext] exten => 11112222,1,Goto(youwin,s,1) exten => 22223333,1,Goto(youwin,s,1) exten => s,1,Backgroun(vm-password) exten => i,1,Goto(maincontext,s,1) [youwin] exten => s,1,Background(extension) exten => 1,1,... exten => 2,1,... exten => 3,1,... Josh Alberts wrote:>Hello. I'm looking for a script that I can use that will ask users for >a password, and then let them call any extension on the asterisk server. > Does anyone know of a premade script that can do this, or a resource I >could use to make my own? > >Thanks, >Josh >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
Josh Alberts
2005-Mar-22 14:01 UTC
[Asterisk-Users] Script to Authenticate User and Dial Out
That seems great, except for some reason, its not working. I'm able to dial any extension on the system, not the ones I'm trying to define in a context. Here's what I have that accepts the incoming calls: [did] exten => 9995,1,Answer exten => 9995,n,Background(welcome) exten => 9995,n,WaitExten include => didcalling The context didcalling has the contexts you suggested. However, since I can make any call on the system (in the default context), its pointless. What am I doing wrong? Thanks, Josh