very simple way to hang up on telemarketers while adding them to the blacklist.

madhatt
Posts: 17
Member Since:
2007-10-31

If you answer the phone and there's someone you want to blacklist on the other side wouldn't it be nice hang up on them and add them to the blacklist at the same time?

Here's how I do it.
I added this to extensions_custom.conf

exten => 4,1,Answer
exten => 4,n,Set(DB(blacklist/${CALLERID(number)})=1)
exten => 4,n,Playback(your)
exten => 4,n,Playback(num-was-successfully&added)
exten => 4,n,Wait(1)
exten => 4,n,Hangup

Then I just transfer the offending party to ext 4 and they hear that there number was added, then their hung up on and can't call back.

It's very simple and probably has been done a zillion times before but I wanted to do my part.

Thanks



wifi
Posts: 39
Member Since:
2008-07-25
Looks like I can use this

Looks like I can use this :-)
One small question. How do I dial ext4 when I'm on the phone?
Do I just need to press #4 or so?
Also. How do I remove a number from the blacklist?



madhatt
Posts: 17
Member Since:
2007-10-31
On my Trixbox system you can

On my Trixbox system you can transfer during a call by pressing ## so in this case it would be ##4 then you would hear a busy single meaning the call was passed on.

You can remove the number from the blacklist module within freepbx.



wifi
Posts: 39
Member Since:
2008-07-25
madhatt, thank you for the

madhatt, thank you for the info.
As soon as I press the # key I can hear the "transfer" melody, and than something like "I'm sorry. Thats not a valid extension".
When I press # 4 the caller gets a message that all circits are busy now.

Presssing ##4 will put the caller in a "welcome to the directory" message!

All I did was adding your 1st post code to the extensions_custom.conf, and restaring trixbox.
I've added your code just below the [from-internal-custom] line.

I'm sure I did something wrong, but what.

Also.. Where can I find the blacklist module. Do I still need to install this 1st?
If so. I did not see it in the "package" area.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.