Automated call reports..

All installation and configuration problems and questions

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

Automated call reports..

Postby Machten » Wed Aug 05, 2020 8:58 pm

Hi guys,

I can't wrap my head around this particular http string I was hoping someone could give me a hand...

Code: Select all
https://xxx.xxx.xxx.xxx/vicidial/call_report_export.php?DB=&run_export=1&ivr_export=&query_date=$now_date&end_date=$now_date&date_field=call_date&header_row=YES&rec_fields=NONE&custom_fields=NO&call_notes=NO&export_fields=EXTENDED&campaign%5B%5D=---ALL---&group%5B%5D=---ALL---&list_id%5B%5D=---ALL---&status%5B%5D=---ALL---&user_group%5B%5D=---ALL---&SUBMIT=SUBMIT


and the result rather then the file being generated I get this

Code: Select all
There are no inbound calls during this time period for these parameters


all I'm trying to do is generate this on a nightly basis for that day.....


any assistance is much appreciated.

Thanks!
Machten
 
Posts: 9
Joined: Tue Jul 07, 2020 5:28 pm

Re: Automated call reports..

Postby Machten » Wed Aug 05, 2020 10:11 pm

I forgot to add that I've been working on this for 3 days now, and have tried to search everywhere for the answer that I'm looking for to no avail.
Machten
 
Posts: 9
Joined: Tue Jul 07, 2020 5:28 pm

Re: Automated call reports..

Postby c20xh2 » Thu Aug 06, 2020 11:21 am

Are you pasting this directly in a browser ? If so you might want to change the variable names for the correct dates:

ivr_export=&query_date=$now_date&end_date=$now_date&
ivr_export=&query_date=2020-08-06&end_date=2020-08-06&
c20xh2
 
Posts: 95
Joined: Mon Feb 20, 2017 2:28 am

Re: Automated call reports..

Postby Machten » Thu Aug 06, 2020 7:18 pm

c20xh2 wrote:Are you pasting this directly in a browser ? If so you might want to change the variable names for the correct dates:

ivr_export=&query_date=$now_date&end_date=$now_date&
ivr_export=&query_date=2020-08-06&end_date=2020-08-06&



I am,

the issue is I want it to pick up the date that the report is run so I wouldn't have to keep changing it daily the only thing I can think of to use as an example would be mysql CURDATE()
Machten
 
Posts: 9
Joined: Tue Jul 07, 2020 5:28 pm

Re: Automated call reports..

Postby williamconley » Thu Aug 06, 2020 10:38 pm

--A--today--B--

?
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: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Automated call reports..

Postby c20xh2 » Fri Aug 07, 2020 8:45 am

There is a lot of different ways to achieve what you are trying to do.

Personally I use a Python3 script to pull out automated report and send them by email daily.
c20xh2
 
Posts: 95
Joined: Mon Feb 20, 2017 2:28 am

Re: Automated call reports..

Postby Machten » Fri Aug 07, 2020 12:01 pm

williamconley wrote:--A--today--B--

?



so just an update I've got it down to this http link

Code: Select all
https://xxx.xxx.xxx.xxx/vicidial/call_report_export.php?DB=&run_export=1&ivr_export=&query_date=--A--today--B--&end_date=2022-08-06&date_field=call_date&header_row=YES&rec_fields=NONE&custom_fields=NO&call_notes=NO&export_fields=EXTENDED&campaign%5B%5D=---ALL---&group%5B%5D=---NONE---&list_id%5B%5D=---ALL---&status%5B%5D=---ALL---&user_group%5B%5D=---ALL---&SUBMIT=SUBMIT


now the interesting part is when I click on it or put it into a browser for that matter, it works fine.

however

as an automated report/custom i get

"There are no inbound calls during this time period for these parameters" ....


very puzzling

when I try to add it in as an automated report even as a custom report it comes up with the error
Machten
 
Posts: 9
Joined: Tue Jul 07, 2020 5:28 pm

Re: Automated call reports..

Postby Machten » Fri Aug 07, 2020 12:32 pm

Machten wrote:
williamconley wrote:--A--today--B--

?



so just an update I've got it down to this http link

Code: Select all
https://xxx.xxx.xxx.xxx/vicidial/call_report_export.php?DB=&run_export=1&ivr_export=&query_date=--A--today--B--&end_date=2022-08-06&date_field=call_date&header_row=YES&rec_fields=NONE&custom_fields=NO&call_notes=NO&export_fields=EXTENDED&campaign%5B%5D=---ALL---&group%5B%5D=---NONE---&list_id%5B%5D=---ALL---&status%5B%5D=---ALL---&user_group%5B%5D=---ALL---&SUBMIT=SUBMIT


now the interesting part is when I click on it or put it into a browser for that matter, it works fine.

however

as an automated report/custom i get

"There are no inbound calls during this time period for these parameters" ....


very puzzling

when I try to add it in as an automated report even as a custom report it comes up with the error



well I was able to get the custom report to work now but the automated one still doesnt....

Code: Select all
https://xxx.xxx.xxx.xxx/vicidial/call_report_export.php?&DB=&run_export=1&ivr_export=&query_date=2020-08-07&end_date=2022-08-06&date_field=call_date&header_row=YES&rec_fields=NONE&custom_fields=NO&call_notes=NO&export_fields=EXTENDED&campaign[]=---ALL---&group[]=---NONE---&list_id[]=---ALL---&status[]=---ALL---&user_group[]=---ALL---&SUBMIT=SUBMIT
Machten
 
Posts: 9
Joined: Tue Jul 07, 2020 5:28 pm

Re: Automated call reports..

Postby williamconley » Fri Aug 07, 2020 2:10 pm

Check the apache log and see if the request is somehow being malformed. Compare your manual request with the automated one.
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: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Automated call reports..

Postby Machten » Fri Aug 07, 2020 9:03 pm

williamconley wrote:Check the apache log and see if the request is somehow being malformed. Compare your manual request with the automated one.



Thank you for the advice,

I just ended up writing a bash script to do what I needed to do lol


I'll revisit this at some point with my findings at least to log what was going on and a fix
Machten
 
Posts: 9
Joined: Tue Jul 07, 2020 5:28 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 64 guests