Page 1 of 1

Please help me this

PostPosted: Mon Sep 06, 2010 5:42 am
by davidh
What version asterisk is vicidialnow 1.3 running? SOLVED

See last post

PostPosted: Mon Sep 06, 2010 8:30 am
by cyberchoy123
asterisk 1.2 i think.

CDR related by AGENT

PostPosted: Mon Sep 06, 2010 8:51 am
by davidh
I want to set a call limit per agent , where can one get the logs of agents call duration.

I want to create a php page where i can set, view and edit cost limits per agent, meaning say agent 1001 logs in, I saw that it creates a converence with the agents softphone, so i gather the dial script is writen in agi for i can not find any links to mysql using the dialplan, my question is this where can i find the agi responcible for making the outbound call, i get a deadagi on hangup.

exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... ----------)
Does this deadagi store any information somewhere, if yes where ??


I want to add my own deadagi when the call ends to get the relevant information from the dialed number, but most importantly the agent info and the duration of the call.


Please any help welcome

PostPosted: Mon Sep 06, 2010 9:12 am
by mflorell
What you describe is not currently a feature of ViciDial. If you describe in more detail exactly what you are trying to do we can give you some suggestions of where to start.

PostPosted: Mon Sep 06, 2010 9:39 am
by davidh
:) That would be great this is what i want to do

This would be used for outgoing campaigns only.

I need to get the calldata(cdr) info from vicidial(the ${CDR(src)} must somehow be linked to Agent(name or Number) something like this:

date---src(agentinfo)--numberdialed--duration(billsec)

I will the create a table with the above fileds and add a available credit field

So every time the agent dials a number i need to check that he or she has sufficient credit to make the call.

If the agent does not have any credit (fail the outbound call and link to message "no funds available to make this call please contact your team leader"

In the long run i want to be able to work out the call costs per sale, and once this is done the door is open for more detailed reporting.

I see every call out links to starting deadagi

exten => _91011XXXXXXX,n,AGI(agi://127.0.0.1:4577/call_log)

When the call is hanged up used the deadagi and an h extension as follows

exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})



What does this AGI do linking to port 4577, is that not comport related.

i need to link to this agi and get the data i need to add it to the custom database

so when the call ends i need the date agent(name or number) destination(number) and the duration of the call.

I hope this makes sense,

PostPosted: Mon Sep 06, 2010 11:30 am
by mflorell
Is this for agents using the vicidial agent interface, or agents just picking up their phones to make calls by dialing themselves?

PostPosted: Mon Sep 06, 2010 2:00 pm
by davidh
No this is for the agent portal only but i will created something similar to this for dialing straight from the soft phone without user portal.(the latter is easy for you can used asterisk dial plan logic with asterisk application MYSQL to update the relevant data

My main concern now is getting those cdr, but asterisk cdr will not give the relevant agent info, for the call is bridged to a conference.

PostPosted: Mon Sep 06, 2010 2:05 pm
by davidh
i some how need to get the agent info in a custom cdr string with number dialed and billable duration.



I also saw there is a agent_log.php file that displays the right information.

I guess i need to find a way to tie into that, i thought this was going to be easy but did not realize that the call to the agent console is a conference.

Please i need a nudge in the right direction.

PostPosted: Mon Sep 06, 2010 2:11 pm
by mflorell
ViciDial does not use the Asterisk CDR because it is not very accurate for the way ViciDial handles calls, especially related to agent time.

PostPosted: Mon Sep 06, 2010 2:16 pm
by davidh
Do you know where or in witch table the call data is stored

PostPosted: Mon Sep 06, 2010 2:18 pm
by davidh
note that the only time i am interested in is the bridged calls to customer i need the duration and agent that is logged in and dialing the number

i can work with that data no problem

PostPosted: Mon Sep 06, 2010 2:25 pm
by davidh
user_stats.php

if you call up this page you get info regarding the agent there is a tab


OUTBOUND CALLS FOR THIS TIME PERIOD: (10000 record limit)