Page 1 of 1

Custom caller ID per area code randomness

PostPosted: Mon Nov 20, 2017 2:55 am
by dspaan
Hi Matt,

I have a question about this feature. The help text says:

CAMPAIGN CID AREACODES

If the System Setting for Areacode CIDs is enabled and the Campaign setting for Use Custom CallerID is set to AREACODE then you have the ability to define Areacode CIDs that will be used when outbound calling to leads in this specific campaign. You can add multiple callerIDs per areacode and you can activate and deactivate them each in real time. If more than one callerID is active for a specific areacode then the system will use the callerid that has been used the least number of times today. If no callerIDs are active for the areacode then the campaign CallerID or list override CallerID will be used. An areacode in this section can be from 2 to 5 digits in length, and if a shorter defined areacode overlaps with a longer areacode then the longer areacode will be used. For example, if the areacodes 31 and 312 are both defined and active for a campaign, then areacode 312 would be used for phone number 3125551212.


So if i set 2 CID's for 1 areacode and that a number in that area is dialed twice in one day it will use a different CID for each call.
But suppose that number is dialed once a day will this method use the same CID each day or will it be random?

Re: Custom caller ID per area code randomness

PostPosted: Mon Nov 20, 2017 7:52 am
by mflorell
The counters reset every day, so it will most likely dial the same one first on the second day since there is no random generator on the query that pulls it.

Re: Custom caller ID per area code randomness

PostPosted: Mon Nov 20, 2017 8:43 am
by dspaan
Ah, that's a shame.

Re: Custom caller ID per area code randomness

PostPosted: Mon Nov 20, 2017 5:25 pm
by blackbird2306
and another important thing to know. The "count" is only area code based not lead based. For example:
1st call: 718xxx area code1 - lead1 --> CID1 dialed (CID1 count 1)
2nd call: 718xxx area code1 -lead2 --> CID2 dialed (CID2 count 1)
but then:
3rd call: 718xxx area code1 - lead1 --> AGAIN CID1 dialed
and not what you would expect CID2, because it was CID1 for lead1 first time of call!!!

and next if you don't want the daily reset of the counter you should comment out the part in "bin\ADMIN_keepalive_ALL.pl" starting at line 1111:
Code: Select all
// $stmtA = "update vicidial_campaign_cid_areacodes SET call_count_today=0;";
// if($DBX){print STDERR "\n|$stmtA|\n";}
// $affected_rows = $dbhA->do($stmtA);
// if($DB){print STDERR "\n|$affected_rows vicidial_campaign_cid_areacodes call counts reset|\n";}
// if ($teodDB) {$event_string = "vicidial_campaign_cid_areacodes records reset: $affected_rows";   &teod_logger;}