Blacklist Destination Patch

necits
Posts: 419
Member Since:
2008-02-23

I've modified Daniele Martini's Patch to work with the current blacklist module. Afer patching you will be able to select a custom destination from within the blacklist module.

You can download it here http://www.necits.com/misc/blacklist.patch

Download Patch
Backup /var/www/html/admin/modules/blacklist
cp -R /var/www/html/admin/modules/blacklist /root/blacklist_bak
Uninstall Blacklist module from module admin.
copy patch to /var/www/html/admin/modules/blacklist
cd /var/www/html/admin/modules/blacklist
patch --dry-run -i blacklist.patch
If you have no errors then
patch -i blacklist.patch
Install blacklist module from module admin (This is required because the patch adds an additional SQL statement to the install script.)
amportal reload

Note: If you update the blacklist module, this patch probably will not work.
Test it out and let me know if there are any issues.

I'll will have a module you can download shortly.

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



necits
Posts: 419
Member Since:
2008-02-23
You can set the destination

You can set the destination for all blacklisted calls. You can not set the destination on a per number basis.

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



meister_sd
Posts: 3
Member Since:
2006-07-10
Failed

I tried your patch twice and failed twice. Here is my output:


[root@asterisk1 blacklist]# patch --dry-run -i blacklist.patch
patching file functions.inc.php
Hunk #1 succeeded at 7 with fuzz 1 (offset -1 lines).
Hunk #2 FAILED at 21.
Hunk #3 succeeded at 208 (offset 1 line).
1 out of 3 hunks FAILED -- saving rejects to file functions.inc.php.rej
patching file install.php
patching file module.xml
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file module.xml.rej
patching file page.blacklist.php
patching file uninstall.php
[root@asterisk1 blacklist]#
 

I'm running Blacklist 1.1.3.6 and FreePBX 2.3.1.7.

I'll look around the code and try to find the problem(s).



necits
Posts: 419
Member Since:
2008-02-23
I modified the patch to work

I modified the patch to work with freepbx 2.4

This is the original that was written for 2.3
http://www.freepbx.org/trac/ticket/2594

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



max-point
Posts: 1
Member Since:
2007-04-19
Patch does not work

FreePBX 2.4.0.1 and Blacklist 2.4
Patch result is:
patch --dry-run -i blacklist.patch
patching file functions.inc.php
patching file install.php
patching file module.xml
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file module.xml.rej
patching file page.blacklist.php
patching file uninstall.php

any ideas how to resolve? or is there a finished module which will allow to enter destination?



nbsberlin
Posts: 46
Member Since:
2007-02-07
different approach

Even though it would be really nice to have this configurable from the admin (maybe something for the next release of freepbx) I did find another way of achieving the same results by overriding the app-blacklist-check macro (extensions_override_freepbx.conf) - takes them to an endless queue telling that no family member is available to take their call and that they should stay on the line. Usually they call once into the queue and never call again....

; includes forward to queue to trap telemarketers
[app-blacklist-check]
exten => s,1,LookupBlacklist()
exten => s,n,GotoIf($["${LOOKUPBLSTATUS}"="FOUND"]?blacklisted)
exten => s,n,Return()
exten => s,n(blacklisted),Answer
;define target in next line
exten => s,n,Goto(ext-queues,222,1)



Comment viewing options

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