Folks, Had a request from a customer: is it possible for a customer, using a password to restrict others from making long distance/cell calls? That is, the user set a level of service? Something like this: Customer dials a number -- "operator" asks for password, then service level (another number). Service level would be something like: 1 - allow inbound calls only 2 - allow 1 + local/toll free calls 3 - allow 2 + long distance national 4 - allow 3 + cell calls 0 - allow 4 + international calls (basically cancel all call restrictions) Dialing to restricted zones would evoke a message from the operator that the phone is blocked by owner. Code examples? Hints? RTFM URL? TIA, David A. Bandel -- Focus on the dream, not the competition. - Nemesis Air Racing Team motto Visit my blog at: http://www.pananix.com/cgi-bin/blosxom
Hint: an AGI application that looks into a database for passwords, and the decides, according to the prefix, if the call is allowed or not On Wed, Aug 26, 2009 at 4:39 AM, David A. Bandel<david.bandel at gmail.com> wrote:> Folks, > > Had a request from a customer: ?is it possible for a customer, using a > password to restrict others from making long distance/cell calls? > That is, the user set a level of service? > > Something like this: > Customer dials a number -- "operator" asks for password, then service > level (another number). ?Service level would be something like: > 1 - allow inbound calls only > 2 - allow 1 + local/toll free calls > 3 - allow 2 + long distance national > 4 - allow 3 + cell calls > 0 - allow 4 + international calls (basically cancel all call restrictions) > > Dialing to restricted zones would evoke a message from the operator > that the phone is blocked by owner. > > Code examples? ?Hints? ?RTFM URL? > > TIA, > > David A. Bandel > -- > Focus on the dream, not the competition. > ? ? ? ? ? ?- Nemesis Air Racing Team motto > Visit my blog at: http://www.pananix.com/cgi-bin/blosxom > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >-- Roberto Piola, Ph.D. Senior Network Engineer Outsourcing Infrastructure VISIANT OUTSOURCING strada del Drosso 128/6 - 10135 Torino T +39 011 3473520 - F +39 011 3473522 M +39 3356961505 roberto.piola at visiant.it www.visiantoutsourcing.it Questo messaggio ? destinato alle sole persone indicate e pu? contenere informazioni riservate. Se avete ricevuto questo e-mail per errore siete pregati di comunicarlo immediatamente al mittente o di inviare un e-mail a: info.outsourcing at visiant.it. Ogni altro uso del messaggio ? vietato. This e-mail may contain confidential and/or privileged information. It is intended solely for the addressee. If you are not the intended recipient please notify immediately the sender or email: info.outsourcing at visiant.it. All other use is prohibited.
You could also do this in the dialplan without AGI. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Roberto Piola Sent: Wednesday, August 26, 2009 6:37 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] User-invoked call restrictions Hint: an AGI application that looks into a database for passwords, and the decides, according to the prefix, if the call is allowed or not On Wed, Aug 26, 2009 at 4:39 AM, David A. Bandel<david.bandel at gmail.com> wrote:> Folks, > > Had a request from a customer: ?is it possible for a customer, using a > password to restrict others from making long distance/cell calls? > That is, the user set a level of service? > > Something like this: > Customer dials a number -- "operator" asks for password, then service > level (another number). ?Service level would be something like: > 1 - allow inbound calls only > 2 - allow 1 + local/toll free calls > 3 - allow 2 + long distance national > 4 - allow 3 + cell calls > 0 - allow 4 + international calls (basically cancel all call restrictions) > > Dialing to restricted zones would evoke a message from the operator > that the phone is blocked by owner. > > Code examples? ?Hints? ?RTFM URL? > > TIA, > > David A. Bandel > -- > Focus on the dream, not the competition. > ? ? ? ? ? ?- Nemesis Air Racing Team motto > Visit my blog at: http://www.pananix.com/cgi-bin/blosxom > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >-- Roberto Piola, Ph.D. Senior Network Engineer Outsourcing Infrastructure VISIANT OUTSOURCING strada del Drosso 128/6 - 10135 Torino T +39 011 3473520 - F +39 011 3473522 M +39 3356961505 roberto.piola at visiant.it www.visiantoutsourcing.it Questo messaggio ? destinato alle sole persone indicate e pu? contenere informazioni riservate. Se avete ricevuto questo e-mail per errore siete pregati di comunicarlo immediatamente al mittente o di inviare un e-mail a: info.outsourcing at visiant.it. Ogni altro uso del messaggio ? vietato. This e-mail may contain confidential and/or privileged information. It is intended solely for the addressee. If you are not the intended recipient please notify immediately the sender or email: info.outsourcing at visiant.it. All other use is prohibited. _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Un-top-posting...> On Wed, Aug 26, 2009 at 4:39 AM, David A. Bandel<david.bandel at gmail.com> >> >> Had a request from a customer: ?is it possible for a customer, using a >> password to restrict others from making long distance/cell calls? That >> is, the user set a level of service?> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Roberto > Piola Sent: Wednesday, August 26, 2009 6:37 AM > > Hint: an AGI application that looks into a database for passwords, and > the decides, according to the prefix, if the call is allowed or notOn Wed, 26 Aug 2009, Danny Nicholas wrote:> You could also do this in the dialplan without AGI.If this is an "only the boss can make $$$ calls" and the password is unlikely to change, hardcode it in the dialplan. Next step up is to store the password in the Asterisk DB. Next step up would be an external database (MySQL) and a web page for frequent updates. Personally, at this stage I would use an AGI to keep the dialplan from getting ugly. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000