HI Guys,

I have used the following method to block 800(8xx) numbers and it works good
so far. I was wondering whether we can use dial pattern to simplify it. I
was trying to define some "constant variables" in "globals", like A=800,
B=866, etc. Then, use "exten =>647xxxxxxx/_[${A}${B}${C}].,1,Hangup." The
goal is to use this one config and it represent all 800, 866, 877, etc
numbers. I tried to use my two cellular phone (which has middle number of
648 and 474) to test out, it seems not successful. Does anyone know how to
do this ?

[globals]
    ;Ring time
    RT=60
    ;Toll-free numbers
    A=800
    B=866
    C=877
    D=888
    E=648
    F=474
[default]
    exten => _X.,1,Hangup(3)

[sipdefault]
    exten => _X.,1,Hangup(3)

[unlimitel-inbound]
    ;exten => 6477226968/_416[${E}${F}].,1,NoOp(20)
    ;exten => 6477226968/_416[${E}${F}].,n,Hangup
    ;/_[${A}${B}${C}].
    exten => 6471234567/_800.,1,Hangup
    exten => 6471234567/_866.,1,Hangup
    exten => 6471234567/_877.,1,Hangup
    exten => 6471234567/_888.,1,Hangup
    exten => 6471234567/_1800.,1,Hangup
    exten => 6471234567/_1866.,1,Hangup
    exten => 6471234567/_1877.,1,Hangup
    exten => 6471234567/_1888.,1,Hangup

Thanks in advance.
peng

On Wed, May 16, 2007 at 11:47 PM, Syd Carter <[email protected]> wrote:

> There is a setup for a script on the NerdVittles website called stealth
> attendant.  I have this installed and I don't ask people to press asterisk
> but have had excellent success with eliminating telemarketer calls.  I think
> that the presence of a greeting message before passing the call onto you
> confuses them, plus I play music while they wait for me to answer the phone.
>  This causes them to hang up.  Of course they try again and again and again,
> but with the same dumb behaviour.  The downside, it also confuses the heck
> out of regular callers too  Its like as soon as they hear an automated
> greeting, they think that my answering machine has picked it up and they
> decide to hang up.
>
> David Steele wrote:
>
>> Richard,
>>
>> If you are just doing this for a home install, you may want to consider a
>> simple auto attendant.  I've got a setup that has stopped telemarketers in
>> their tracks.  It is a little cumbersome, but I have a prerequisite that I
>> have to meet - the Toronto Public Library (automated message phone call) has
>> to be able to leave a message letting me know that books that I or my wife
>> have reserved are now available.
>>
>> My strategy:
>>
>> __________
>>
>> "Hi, we don't accept charity or marketing phone calls.  All other callers,
>> please press star now"
>> (if no press after 5 seconds, go to a general voicemail box that says "Hi,
>> you are in our general voicemail box.  If you feel you have reached this in
>> error, please hang up and try again.  If not, well, perhaps hang up now
>> anyway.  If you feel that you must leave a message, please do so after the
>> tone")
>>
>> If the caller did press *, go to the directory.
>> __________
>>
>> Callers can actually dial the extension they need immediately (my
>> extensions are 1, 2 and 3) without hitting * first.  I could potentially
>> further tweak the system to have a whitelist that goes directly to the
>> directory, or to a particular extension.  At the moment I just have my cell
>> phone programmed to dial 1 after hitting the AA, so I don't have to do
>> anything special to call home.
>>
>> I finish it off by having the general voicemail box email any messages to
>> me.  After a month of running with the system I have found that it has
>> caught a few people that have genuine business with us, but no telemarketers
>> have left messages (and none have had the 'nads to hit * to talk to us
>> live).
>>
>> Hope this helps, and if anyone has any suggestions on how this could be
>> further tweaked I would love to hear about it.
>>
>> Cheers,
>> Dave.
>>
>>
>> On 5/15/07, * Duane* <[email protected] <mailto:[email protected]>> wrote:
>>
>>    Richard (Rogers @ work) wrote:
>>    > Good point Chris!
>>
>>    There is a site (http://whocalled.us) that you can post about
>>    tele-scum,
>>    and I guess you could query it if you do a little screen scraping in
>>    Asterisk.
>>
>>    --
>>
>>    Best regards,
>>    Duane
>>
>>    http://www.freeauth.org - Enterprise Two Factor Authentication
>>    http://www.nodedb.com - Think globally, network locally
>>    http://www.sydneywireless.com - Telecommunications Freedom
>>    http://e164.org - Because e164.arpa is a tax on VoIP
>>
>>    "In the long run the pessimist may be proved right,
>>        but the optimist has a better time on the trip."
>>
>>    ---------------------------------------------------------------------
>>    To unsubscribe, e-mail: [email protected]
>>    <mailto:[email protected]>
>>    For additional commands, e-mail: [email protected]
>>    <mailto:[email protected]>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to