Anyone have an idea how to implement a phone number that can only be called once? The first time it will process normally and any subsequent calls will be rejected.
Store a value indicating it has been called as a unique key in AstDB, and set your dial plan to check for it. On Fri, 30 Nov 2007, joakimsen at gmail.com wrote:> Anyone have an idea how to implement a phone number that can only be > called once? The first time it will process normally and any > subsequent calls will be rejected. > > _______________________________________________ > --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 >-- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671
Do you mean only once per day? On Dec 1, 2007 7:47 AM, Alex Balashov <abalashov at evaristesys.com> wrote:> > Store a value indicating it has been called as a unique key in AstDB, and > set your dial plan to check for it. > > On Fri, 30 Nov 2007, joakimsen at gmail.com wrote: > > > Anyone have an idea how to implement a phone number that can only be > > called once? The first time it will process normally and any > > subsequent calls will be rejected. > > > > _______________________________________________ > > --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 > > > > -- > Alex Balashov > Evariste Systems > Web : http://www.evaristesys.com/ > Tel : +1-678-954-0670 > Direct : +1-678-954-0671 > > _______________________________________________ > --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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071201/977b348b/attachment.htm
joakimsen at gmail.com wrote:> Anyone have an idea how to implement a phone number that can only be > called once? The first time it will process normally and any > subsequent calls will be rejected. > > _______________________________________________ > --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 >Yup store the number in DB if its new, if it's already in db reject. This is an incredibly simple thing to do, you can even just use the Asterisk internal DB for simplicity. Anthony