Filter inbound calls that are not in the campaign lists

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Filter inbound calls that are not in the campaign lists

Postby omarrodriguezt » Tue Oct 09, 2012 7:37 am

Hello,
Is there a way to filter inbound calls that are not in the campaign list?
What we want to achieve is that the agents only receive inbound calls from phone_numbers that already exist in the data base lists.
Thank you!
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Re: Filter inbound calls that are not in the campaign lists

Postby mflorell » Tue Oct 09, 2012 1:00 pm

That is not currently a feature, but you could write a PHP script and use the Filter URL feature of DIDs to do this without too much effort.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Filter inbound calls that are not in the campaign lists

Postby omarrodriguezt » Tue Oct 09, 2012 3:15 pm

thank you. Is there any php sample?
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Re: Filter inbound calls that are not in the campaign lists

Postby mflorell » Wed Oct 10, 2012 8:56 am

no, you just need to write something that will do a search and output the number of matches only, if it is 0 the filter will not apply, if it is greater than 0 then it will.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Filter inbound calls that are not in the campaign lists

Postby omarrodriguezt » Wed Oct 10, 2012 11:19 am

Thank you Matt.
So the Filter URL feature will expect a number (integer) from the php webpage, that can be 0, filter not matches or greater than 0.
This is the definition from help:

Filter URL - If the Filter Inbound Number field is set to URL then this is the web address of a script that will search a remote system and return a 1 for a match and a 0 for no match. Only two variables are available in the address if you use the VAR prefix like with webform addresses in campaigns, --A--phone_number--B-- and --A--did_pattern--B-- can be used in the URL to indicate the caller ID of the caller and the DID that the customer called in on.

So, when return 0 it will send the call to the Filter Action that I select right?
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Re: Filter inbound calls that are not in the campaign lists

Postby mflorell » Thu Oct 11, 2012 5:48 am

No, if it returns a 0 that means no match so it will no use the filter settings. If it returns a 1 or higher it will be a match and it will use the filter settings.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Filter inbound calls that are not in the campaign lists

Postby omarrodriguezt » Thu Oct 11, 2012 6:57 am

Gracias!!!
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Re: Filter inbound calls that are not in the campaign lists

Postby jamromhem » Thu Jul 24, 2014 12:13 pm

I will apologize now for reviving a dead thread. I am currently reviewing this as an option right now, and want some simple clarification. This may also help for others considering this. the filter URL would be something along the lines of

Code: Select all
phonefilter.php?number=--A--phone_number--B--&did=--A--did_pattern--B--


and that file searches the database with a

Code: Select all
select count(*) from vicidial_list where phone_number=$number;


Code: Select all
  return $count;

to finish the script?

Maybe not this exact syntax, but generally that idea?
jamromhem
 
Posts: 2
Joined: Thu Jul 24, 2014 11:49 am

Re: Filter inbound calls that are not in the campaign lists

Postby jamromhem » Thu Jul 24, 2014 12:35 pm

and as some further clarification. the settings that would normally be in

User Route Settings In-Group
In-Group ID

would then be moved to the filter versions of these if you wanted it to take effect on positive matches, and you would want the non matches to go to what is now in those boxes?
jamromhem
 
Posts: 2
Joined: Thu Jul 24, 2014 11:49 am

Re: Filter inbound calls that are not in the campaign lists

Postby cemarta » Tue Oct 07, 2014 8:54 am

Guys.

I have try this option and for some reason its not working.
I wrote a small php script to test it:
<?
$number=$_GET["number"];
if(something){
echo "1";
}
else
{
echo "0";
}
?>

For some reason I have not been able to make it work. I have try return 1, just echo 1, echo "1".
Could any body help me.

Thanks
cemarta
 
Posts: 1
Joined: Tue Oct 07, 2014 8:28 am

Re: Filter inbound calls that are not in the campaign lists

Postby eyeofefil » Thu Sep 22, 2022 4:41 pm

This is the same thing that I am working on right now. I am also running out of ideas lolz
eyeofefil
 
Posts: 21
Joined: Thu Feb 15, 2018 2:45 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 67 guests