James Bean
2005-Jun-11 16:27 UTC
[Asterisk-Users] Help with denighing access to certain numbersbyCallerID
Sounds like what I had in mind, could you point me in the right direction to an example of agi scripts that might do this :-). I'm not well versed in the ways of the AGI and would flounder significantly. James -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Rob Thomas Sent: Sunday, 12 June 2005 8:45 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Help with denighing access to certain numbersbyCallerID I would think the easiest way is to use an AGI.. exten => _001162.,Dial(Zap/g1/${EXTEN}/tT); (Anyone can call NZ) exten => _0011.,Exec(checkperms); checkperms.agi would then match against a list. --Rob> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of James Bean > Sent: Sunday, June 12, 2005 8:40 AM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Help with denighing access to certainnumbers> byCallerID > > > Hi, > > Asterisk 1.0.7 > TE405P - Port 1 - ISDN30 telco > - Port 4 - Primary Rate connection to Phone system > > The system has a mixture of 20+ sip phones and the 50 odd extensionson> the phone system connected to Port 4. > > What I want to accomplish is to be able to denigh access to certain > outgoing phone calls by the extension/callerid the call originatedfrom.> > i.e. Only certain sip and telephone extensions from the phone systemcan> dial 0011 (international) numbers, and well I already have theporn/pay> per call 1902 calls blocked already. > > The difficulty I am having is a problem with being able to block bythe> callerid from the phone system calls, I get the callerid from the > incoming extension no problems but blocking certain numbers by it isthe> problem. > > I can only really see 2 ways to do it, and it's a little above me andI> was hoping someone has done it and I can get a copy of what they did:-> 1. Some sort of api or script in the checks the callerid against an > authorised list. > 2. setup up the restricted numbers can only be used with a secretcode,> when the number is dialed it prompts the users to punch in an access > code to allow the call. > > Any suggestions, anyone already done it can throw me an example, > hopefully trying to avoid several pages of allows for the people whocan> uses those numbers. > > James > _______________________________________________ > 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_______________________________________________ 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