Callbacks Bulk Move
Posted: Wed Aug 26, 2020 8:19 am
So i spent all morning delving into and documenting which various things there are to know about callbacks. I got triggered by a supervisor who said that there were callbacks visible under 'campaign>View callback holds for this campaign' which were not getting dialed. Investigation turned out they had made new callback statuses but didn't add them as a dialable status in the campaign so they were not getting called. Despite that some of them had a final status in the vicidial list because they had been called manually.
So this had left a bunch of callbacks in the callbacks table whith live status but where the lead itself had a non-dialable status.
So what i remember from the past is that you could click one of these links at the bottom of the page:
Remove LIVE Callbacks older than one month for this campaign
Remove LIVE Callbacks older than one week for this campaign
And clicking that would delete them from the callbacks table or set them to inactive, i'm not sure.
I'm using SVN3199 and when i click either of the links now it takes me to the callbacks bulk move page and pre-selects the campaign i came from along with the related lists, related usersgroups and related users:
Now when i only want to purge the callbacks that already have a non-callback status in the vicidial list i would uncheck 'Purge uncalled records' and leave 'Purge called records' checked. Since i don't want to move the callbacks to a new list i leave the 'List ID' set to DO NOT ALTER LIST ID.
When i do this and click the TRANSFER TO button nothing happens. The screen flashes and all my selections are undone, no callbacks have been cleaned from the callbacks table and no confirmation screen on the selection i've made (is what i would expect).
I tried with error console but no errors. Nothing in the apache error log. I searched the forum and mantis but nothing. Did i find a new bug?
I also checked the latest version of the manager manual but this is really nothing more then the explanations you can find by using the help icons:
Also the option 'Revert to last status' at the right bottom isn't documented anywhere.
Also i already have this active in crontab:
help info:
[--purge-non-cb] = delete callback records of leads with no CBHOLD/CALLBK status
[--remove-dup-cb] = remove older duplicate callbacks for same user and lead_id
Here is an example of what i have in my callbacks table:
So i would say there are plenty leads meeting my criteria for the bulk move tool.
So this had left a bunch of callbacks in the callbacks table whith live status but where the lead itself had a non-dialable status.
So what i remember from the past is that you could click one of these links at the bottom of the page:
Remove LIVE Callbacks older than one month for this campaign
Remove LIVE Callbacks older than one week for this campaign
And clicking that would delete them from the callbacks table or set them to inactive, i'm not sure.
I'm using SVN3199 and when i click either of the links now it takes me to the callbacks bulk move page and pre-selects the campaign i came from along with the related lists, related usersgroups and related users:
Now when i only want to purge the callbacks that already have a non-callback status in the vicidial list i would uncheck 'Purge uncalled records' and leave 'Purge called records' checked. Since i don't want to move the callbacks to a new list i leave the 'List ID' set to DO NOT ALTER LIST ID.
When i do this and click the TRANSFER TO button nothing happens. The screen flashes and all my selections are undone, no callbacks have been cleaned from the callbacks table and no confirmation screen on the selection i've made (is what i would expect).
I tried with error console but no errors. Nothing in the apache error log. I searched the forum and mantis but nothing. Did i find a new bug?
I also checked the latest version of the manager manual but this is really nothing more then the explanations you can find by using the help icons:
Callbacks Bulk Move
This is complex utility that is used to move callbacks meeting a set of selected criteria to a new list and or a new lead status. It can also purge called records from the callbacks table.
Campaigns with callbacks -The current list of all campaigns having at least one callback - select one
or more to move callbacks from these campaigns in bulk to new lists and or assign new statuses. This
will combine with other selected criteria to make a final list of callbacks to move.
Lists with callbacks -All list IDs having at least one callback - select one or more to move callbacks
from these lists in bulk to new lists and or assign new statuses. This will combine with other selected
criteria to make a final list of callbacks to move.
User groups with callbacks -The current list of all user groups having at least one callback - select one
or more to move callbacks from these user groups to new lists and or assign new statuses. This will
combine with other selected criteria to make a final list of callbacks to move.
Agents with callbacks -The current list of all agents having at least one callback - select one or more
to move callbacks from these agents to new lists and or assign new statuses. This will combine with
other selected criteria to make a final list of callbacks to move.
Purge called records -If this box is checked, before the leads meeting the selected criteria are moved,
the callbacks table will purge itself of all inactive records in the table. This includes records that have a
status of INACTIVE, OR any record still in the callback table that is LIVE but whose status in the
vicidial_list table is NOT listed as a callback, i.e. it has been called, lead has called in, lead dispo has
been modified. The page will notify you how many leads will be purged before you confirm that you
would like to proceed.
Purge uncalled records - If this box is checked, before the leads meeting the selected criteria are
moved, the callbacks table will purge itself of all uncalled records in the table. This includes records
that have a status of ACTIVE, OR any record still in the callback table that is LIVE but whose status in
the vicidial_list table is still listed as a callback, i.e. it has not been called, has not called in, and has not
had the lead dispo modified. The page will notify you how many leads will be purged before you
confirm that you would like to proceed.
Live and uncalled for over XX days -Selecting a date range from this drop down menu will filter out
any callback where the scheduled callback time is past the selected number of days from the current
date and time. This will combine with other selected criteria to make a final list of callbacks to move.
Transfer to List ID -The list ID to which all callbacks will be moved. The move will occur on the
records in vicidial_list table - the matching records in vicidial_callbacks will be removed.
New Status -The new vicidial_list status the selected callbacks will be updated to. This affects the
vicidial_list table ONLY.
Also the option 'Revert to last status' at the right bottom isn't documented anywhere.
Also i already have this active in crontab:
- Code: Select all
# cleanup of the scheduled callback records
25 0 * * * /usr/share/astguiclient/AST_DB_dead_cb_purge.pl --purge-non-cb --quiet
# removal of duplicate scheduled callback records
35 0 * * * /usr/share/astguiclient/AST_DB_dead_cb_purge.pl --purge-non-cb --remove-dup-cb --quiet
help info:
[--purge-non-cb] = delete callback records of leads with no CBHOLD/CALLBK status
[--remove-dup-cb] = remove older duplicate callbacks for same user and lead_id
Here is an example of what i have in my callbacks table:
So i would say there are plenty leads meeting my criteria for the bulk move tool.