vicidial_log

Discussions about development of VICIDIAL and astGUIclient

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

vicidial_log

Postby cff_moiseszaragoza » Thu Mar 24, 2011 9:41 am

Hi every one

I am was ask to change the vicidial_log table by adding a new field but i need to populate that field but i cant seem to find the insert to that table.

Does any one know where the INSERT Query is?

Thanks

I looked in

agc/vdc_db_query.php
cff_moiseszaragoza
 
Posts: 10
Joined: Thu Mar 24, 2011 8:39 am

Postby mflorell » Thu Mar 24, 2011 10:59 pm

All over the place. That table gets inserted into and updated in at least 8 scripts.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby cff_moiseszaragoza » Fri Mar 25, 2011 8:52 am

would you know where the one for automated dialing is?
cff_moiseszaragoza
 
Posts: 10
Joined: Thu Mar 24, 2011 8:39 am

Postby williamconley » Fri Mar 25, 2011 10:41 am

i have a better idea: what information are you trying to capture?

also:

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.

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
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby cff_moiseszaragoza » Tue Mar 29, 2011 11:25 am

Vicibox Redux 3.1.9 64Bit
VERSION: 2.4-319c
BUILD: 110310-1627
Asterisk 1.4.39.1-vici
Single Server For Testing Dual Proc 2.8Ghz 2Gig Ram

All of it is in 1 box for development


What i am trying to get is the data from vicidial_list.vendor_lead_code into vicidial_log.vendor_lead_code

the vendor_lead_code in the vicidial_log is a new field added
Vicibox Redux 3.1.9 64Bit
VERSION: 2.4-319c
BUILD: 110310-1627
Asterisk 1.4.39.1-vici
Single Server For Testing Dual Proc 2.8Ghz 2Gig Ram
ALL in 1 box
cff_moiseszaragoza
 
Posts: 10
Joined: Thu Mar 24, 2011 8:39 am

Postby williamconley » Tue Mar 29, 2011 11:54 am

wouldn't it be simpler to use a query when reporting and just leave the data where it is?

Code: Select all
select * from vicidial_log inner join vicidial_list on vicidial_log.lead_id=vicidial_list.lead_id where vicidial_list.lead_id >= 'XXXX'
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby cff_moiseszaragoza » Tue Mar 29, 2011 12:36 pm

there are a lot of things that would have been easer

a cron job that populates the data after the fact

or to make it happen on a update statement

i do appreciate your help but i still need to find out at least what file is responsible for that insert statement
Vicibox Redux 3.1.9 64Bit
VERSION: 2.4-319c
BUILD: 110310-1627
Asterisk 1.4.39.1-vici
Single Server For Testing Dual Proc 2.8Ghz 2Gig Ram
ALL in 1 box
cff_moiseszaragoza
 
Posts: 10
Joined: Thu Mar 24, 2011 8:39 am

Postby williamconley » Tue Mar 29, 2011 12:50 pm

happy hunting, but remember that modifying the vicidial code now means modifying it again when you update/upgrade. a custom report, however, need not be overwritten and will still work. 8)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby cff_moiseszaragoza » Tue Mar 29, 2011 1:30 pm

i agree i am not the fan of doing things this way but i don't allays make all the decisions

Thanks williamconley but i have not mention any reports, we need the data in the log field for other reasons

if you want i can explain to you the full process of what i am trying to get accomplish but i did not think that was necessary for what it should be the hunt of a insert query
Vicibox Redux 3.1.9 64Bit
VERSION: 2.4-319c
BUILD: 110310-1627
Asterisk 1.4.39.1-vici
Single Server For Testing Dual Proc 2.8Ghz 2Gig Ram
ALL in 1 box
cff_moiseszaragoza
 
Posts: 10
Joined: Thu Mar 24, 2011 8:39 am

Postby williamconley » Tue Mar 29, 2011 8:03 pm

"necessary" vs perhaps there is another way to accomplish the task.

you'll have to find ALL situations that write data to the log (and possibly those that read data from it) ... and ensure the data you want to put in the log is available and that your changes do not break any other functionality ... AND that you can duplicate this feat when next you upgrade vs a quick reason why this information needs to be duplicated in the log and in the lead record could be helpful. 8)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby cff_moiseszaragoza » Wed Mar 30, 2011 7:34 am

Thanks for your help i know what a insert statement is and i that i have to find all the places where it happens my questions is where are they at. if you can give me a file name like agc/vdc_db_query.php would be of great help that is all i am looking for

i looked in that file and a grep the server for all instances of INSERT INTO vicidial_log

now i am asking is. In what file can i find a insert to the vicidial_log ?

Thanks
Vicibox Redux 3.1.9 64Bit
VERSION: 2.4-319c
BUILD: 110310-1627
Asterisk 1.4.39.1-vici
Single Server For Testing Dual Proc 2.8Ghz 2Gig Ram
ALL in 1 box
cff_moiseszaragoza
 
Posts: 10
Joined: Thu Mar 24, 2011 8:39 am

Postby williamconley » Wed Mar 30, 2011 7:24 pm

Code: Select all
grep vicidial_log * -R -n --exclude='*txt' | grep INSERT
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby cff_moiseszaragoza » Thu Mar 31, 2011 8:20 am

Thanks for the help i truly appreciate your help

but that did not return anything what so ever.

Code: Select all
VICIDEV:~ # grep vicidial_log * -R -n --exclude='*txt' | grep INSERT
VICIDEV:~ #
Vicibox Redux 3.1.9 64Bit
VERSION: 2.4-319c
BUILD: 110310-1627
Asterisk 1.4.39.1-vici
Single Server For Testing Dual Proc 2.8Ghz 2Gig Ram
ALL in 1 box
cff_moiseszaragoza
 
Posts: 10
Joined: Thu Mar 24, 2011 8:39 am

Postby williamconley » Thu Mar 31, 2011 9:42 am

you should try that in your web root (somewhere below where you expect to find the files, which is NOT the ~ folder)8)

welcome to linux :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby cff_moiseszaragoza » Mon Apr 11, 2011 2:05 pm

i just tried it again grep vicidial_log * -R -n --exclude='*txt' | grep INSERT first thing when i log in to the box and the only things that return are the SQL log files







VICIDEV:~ # grep vicidial_log * -R -n --exclude='*txt' | grep INSERT

vd_dev.sql:3306:INSERT INTO `vicidial_log`
vd_dev.sql:3374:INSERT INTO `vicidial_log_extended`

VICIDEV:~ #
Vicibox Redux 3.1.9 64Bit
VERSION: 2.4-319c
BUILD: 110310-1627
Asterisk 1.4.39.1-vici
Single Server For Testing Dual Proc 2.8Ghz 2Gig Ram
ALL in 1 box
cff_moiseszaragoza
 
Posts: 10
Joined: Thu Mar 24, 2011 8:39 am

Postby williamconley » Mon Apr 11, 2011 3:11 pm

williamconley wrote:you should try that in your web root (somewhere below where you expect to find the files, which is NOT the ~ folder)


cff_moiseszaragoza wrote:i just tried it again grep vicidial_log * -R -n --exclude='*txt' | grep INSERT first thing when i log in to the box ...

VICIDEV:~ # grep vicidial_log * -R -n --exclude='*txt' | grep INSERT

vd_dev.sql:3306:INSERT INTO `vicidial_log`
vd_dev.sql:3374:INSERT INTO `vicidial_log_extended`

VICIDEV:~ #
I specifically mentioned to run the command in the web root (which is different for each distro of this software, old versions /var/www or new Vicibox /srv/www/htdocs ... or ...) but most certainly NOT "~" your home and not "first thing when I log in" (which is ~, BTW and not the web root). Keep trying.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Development

Who is online

Users browsing this forum: No registered users and 163 guests