Asterisk Call Barring

Hello All

I do authentication using the astdb functions which allows users to authenticate before a call goes out of the Box. I would like to do call barring based on a user rather than an extension as my users roam around the office. Does anyone have any ideas for me

Regards

Gary

Hi

Give each user a usernumber and pin, Then they can dial an access code when they walk up to a phone and then the usernumber and pin and get dialtone to dial out

Ian

Hello Ian

Thank you, how do i tie that user down into a specific context?

Cheers

Hi

Like this

exten => *12,1,Answer ; Answer the line exten => *12,n,Read(act_code,access-code,4) exten => *12,n,set(passkey=${DB(auth_user/${act_code})}) exten => *12,n,Authenticate(${passkey}) exten => *12,n,set(db_context=${DB(acc_cont/${act_code})}) exten => *12,n,Set(CDR(accountcode)=${act_code}) exten => *12,n,DISA(no-password|${db_context})

you then have database entries for the usernumber and password and for the usernumber and context.

Ian