Here is a simple control for what you are asking:
Exten => s,1,noop(Dial Long Distance #)
exten => s,n,Set(LDACCESS=${DB(LD/Access)})
exten => s,n(readacct),Read(digitacc,record/entercode,8,skip,1,10])
exten => s,n,Gotoif($["${LEN(${digitacc})}" <
"4"]?readacct)
exten => s,n,Gotoif($["${digitacc}" <
"${LDACCESS}"]?readacct)
exten => s,n,Dial(Tech/1,ww1XXXXXXXXXXXX,60)
This reads the access code in from the Asterisk DB, plays a message for user
to enter it and dials once a matching entry is made.
You have to create the value in the Asterisk DB and record the message.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Oguzhan Kayhan
Sent: Wednesday, April 01, 2009 10:26 AM
To: asterisk
Subject: [asterisk-users] login-logout asterisk
Hello,
In our previous PBX we have an option to turn off or on outside calls with
a pincode..
Like, user is able to get calls or dial local lines by default, but when
he/she uses a password entrance via dtmf, he can dial long distance calls
etc.And at anytime he can logoff from outside call permit..
So is it possible to do smthing like this on asterisk..
A limited profile which needs sip password of the user again to dial long
distance calls for example.
Thanks..
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users