1) Welcome to the party!
2) when you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.
this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)
You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system.
If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.
Similar to This:
Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600
3) The asterisk dialplan does have the ability to issue sql commands. In addition to that, the asterisk agi scripting system has the ability to accept channel variables, check them in mysql against the live calls tables to identify this caller and then acquire the lead information from the vicidial_list table.
4) Lots of work, though. You may want to upgrade and see if that resolves your issue and/or pay The Vicidial Group to resolve the bug (after the upgrade, of course, in case someone has already had this one squished ...).
5) If you upgrade and validate the bug through testing, you should open a ticket in the Vicidial Issue Tracker (Link above on this page) documenting the bug. Then see if The Vicidial Group or another vendor can fix it. If you choose to fix it yourself, make a diff against the latest SVN code that will resolve it and submit it with the ticket and The Vicidial Group may include it in Trunk so you don't lose the fix when you upgrade.