Duplicate Callbacks.

All installation and configuration problems and questions

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

Duplicate Callbacks.

Postby atkins513 » Tue Apr 04, 2023 11:37 am

VERSION: 2.14-634c BUILD: 210421-2110

Anyone who is able to help me, I really appreciate it. I keep getting a lot of duplicated callbacks.. I end up with old callbacks scheduled, but then newer ones i have scheduled since speaking with the customer, and then sometimes they get duplicated even again when i schedule a newer callback with the customer. I have seen scripts for clearing OLDER duplicate callbacks for the same user, same lead ID, and only keeping the newest scheduled callback but they are from 2019. Are these scripts still applicable for cleaning up my callbacks? and how do I use them? Do I load up putty, then run the script ? What would be the exact script I would run to delete older duplicate callbacks for a user but keep the newest versions of the callback in place?

My searches was leading me to the following info but i dont know exactly how to use it for my purposes. Please lay it out for me simply from the point I connect with Putty and login root.
Thank you.

-----------------------------------------------
If you set up the "AST_DB_dead_cb_purge.pl" script in your crontab then it can periodically clear out callback entries for leads that have had their status changed. Make sure to read the comments so you set the proper options:
dial1:~ # /usr/share/astguiclient/AST_DB_dead_cb_purge.pl --help
allowed run time options:
[--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
[--test] = test
[--quiet] = quiet
[--debug] = verbose debug messages
[--debugX] = extra verbose debug messages
-----------------------------------------------
atkins513
 
Posts: 56
Joined: Fri Jul 03, 2020 12:31 pm

Re: Duplicate Callbacks.

Postby jamiemurray » Tue Apr 04, 2023 4:47 pm

The version you are running is 2 years old, I'd recommend updating to the latest SVN version to see if this still occurs going forward, it may have already been fixed.

As for removing the older of the duplicated callbacks, --remove-dup-cb would clear them out and then --purge-non-cb would clear out any callbacks whether the lead status is no longer a callback.
If you run the commands with the --test parameter set it'll likely give you an indication of how many are going to be purged without actually doing it.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 172
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: Duplicate Callbacks.

Postby atkins513 » Tue Apr 04, 2023 9:16 pm

Thank you. I was able to run both commands and they worked perfectly.
I appreciate the assistance. Last question. How do i use the --test parameter? I tried adding it to the end of the statement as shown below and got no output telling me what would be purged.

/usr/share/astguiclient/AST_DB_dead_cb_purge.pl --remove-dup-cb --test

What should i do differently?
atkins513
 
Posts: 56
Joined: Fri Jul 03, 2020 12:31 pm

Re: Duplicate Callbacks.

Postby jamiemurray » Wed Apr 05, 2023 5:36 am

Maybe add the --debugX too and it will likely yield more details
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 172
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands


Return to Support

Who is online

Users browsing this forum: No registered users and 284 guests