Page 1 of 1
Filter inbound calls that are not in the campaign lists
Posted:
Tue Oct 09, 2012 7:37 am
by omarrodriguezt
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!
Re: Filter inbound calls that are not in the campaign lists
Posted:
Tue Oct 09, 2012 1:00 pm
by mflorell
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.
Re: Filter inbound calls that are not in the campaign lists
Posted:
Tue Oct 09, 2012 3:15 pm
by omarrodriguezt
thank you. Is there any php sample?
Re: Filter inbound calls that are not in the campaign lists
Posted:
Wed Oct 10, 2012 8:56 am
by mflorell
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.
Re: Filter inbound calls that are not in the campaign lists
Posted:
Wed Oct 10, 2012 11:19 am
by omarrodriguezt
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?
Re: Filter inbound calls that are not in the campaign lists
Posted:
Thu Oct 11, 2012 5:48 am
by mflorell
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.
Re: Filter inbound calls that are not in the campaign lists
Posted:
Thu Oct 11, 2012 6:57 am
by omarrodriguezt
Gracias!!!
Re: Filter inbound calls that are not in the campaign lists
Posted:
Thu Jul 24, 2014 12:13 pm
by jamromhem
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?
Re: Filter inbound calls that are not in the campaign lists
Posted:
Thu Jul 24, 2014 12:35 pm
by jamromhem
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?
Re: Filter inbound calls that are not in the campaign lists
Posted:
Tue Oct 07, 2014 8:54 am
by cemarta
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
Re: Filter inbound calls that are not in the campaign lists
Posted:
Thu Sep 22, 2022 4:41 pm
by eyeofefil
This is the same thing that I am working on right now. I am also running out of ideas lolz