When configuring a Superfecta scheme, the option exists to redirect SPAM identified calls to an alternate destination. This redirect happens staring on line 63 of /agi/superfecta.agi. The CNAM that Superfecta finds is applied to the channel by asterisk dialplan (line 115 of functions.inc.php) only after superfecta.agi is finished. For this reason, spam redirected calls do not have the Superfecta CNAM nor the CNAM spam prefix.
Two possible approaches:
Instead of redirecting within superfecta.agi, instead set an asterisk variable and relocate the spam redirect to asterisk dialplan to trigger if variable is set
Move the lines that set CALLERID(name) from the asterisk dialplan to superfecta.agi. This is less desirable because superfecta.agi is already used for purposes other than inbound calls (i.e. outbound cnam lookup) and may have unintended consequences in those situations.
When configuring a Superfecta scheme, the option exists to redirect SPAM identified calls to an alternate destination. This redirect happens staring on line 63 of /agi/superfecta.agi. The CNAM that Superfecta finds is applied to the channel by asterisk dialplan (line 115 of functions.inc.php) only after superfecta.agi is finished. For this reason, spam redirected calls do not have the Superfecta CNAM nor the CNAM spam prefix.
Two possible approaches: