Page 1 of 1

how to block inbound that are not in the campaign's list

PostPosted: Thu Mar 09, 2023 3:17 pm
by jovieticar101
how to block inbound calls that are not in the campaign's lists?

anyway to do it? because we're receiving a lot of inbound calls that are in the campaign's list or list within the entire system.
some of the calls are coming from a telemarketer.. I would like to ask if theres a way we could prevent

Re: how to block inbound that are not in the campaign's list

PostPosted: Fri Mar 10, 2023 1:51 am
by udy786
Only possible by custom AGI code. When incoming calls reach to dialplan, send that number to AGI and check in database whatever condition you want to implement and return true OR false and process.

Re: how to block inbound that are not in the campaign's list

PostPosted: Fri Mar 10, 2023 7:29 am
by mflorell
There is nothing currently built-in that can do what you describe, but you can write a simple local PHP script to do that query and use that in the DID's Filter URL and that will do what you are looking for.

Re: how to block inbound that are not in the campaign's list

PostPosted: Tue Mar 14, 2023 12:21 pm
by jovieticar101
thanks Matt

Re: how to block inbound that are not in the campaign's list

PostPosted: Tue Mar 21, 2023 2:15 pm
by jamiemurray
I usually achieve this with having a separate list within the campaign that is not used for anything other than "Unmatched Inbound Leads".

The calls arrive on a DID which performs lookup of all campaign lists to find the lead by caller id with a default list id of the Unmatched list from above.
The call then goes to a always closed ingroup which routes afterhours to an IVR which has qualify sql enabled (this can be enabled in system settings).
I use the following in qualify sql on the IVR entry:

Code: Select all
list_id != [LISTID of the Unmatched Inbound Leads list]


If you don't want an IVR to play, just set the sound file to sip-silence and timeout to 1 second with 0 repeat.
Timout destination would be wherever you intend to send "Valid" calls that have been matched to a lead.
D destination would be wherever you want to send the calls from "Unmatched" leads.

Re: how to block inbound that are not in the campaign's list

PostPosted: Tue Mar 21, 2023 2:19 pm
by jamiemurray
On some campaigns we even have it set that the script/custom fields form that appears on the screen when the lead is unmatched, displays a notice to the effect:

"This is not the original lead! Ask the customer which phone number of theirs they received the call from us on and click here to search for the original lead."

The "click here" part is literally just a hyperlink which brings up the lead search page (assuming lead search is permitted on inbound calls).