Custom list handling in a campaign

Discussions about development of VICIDIAL and astGUIclient

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

Custom list handling in a campaign

Postby smontoya » Thu Nov 14, 2013 8:52 pm

Hi,

I'm attempting to create a custom way of handling calls to agents in auto dial in a campaign, besides the existing longest_wait_time, fewest_calls, random, etc... any clue where to find this code will do.

What I'm attempting to do is add most_calls to give priority to agents that have a good ranking taking calls and have been handling more calls.

Thanks in advance,

Sergio.
Vicibox 8.0 from .iso | Vicidial 2.14-812a | SVN 3442 | DB SCHEMA 1633 | Asterisk 13.38.2-vici | Dell PowerEdge R410 | 2xE5-2420 v2 @ 2.20GHz, 12 cores,32 GB Ram |
smontoya
 
Posts: 24
Joined: Thu Nov 14, 2013 8:43 pm

Re: Custom list handling in a campaign

Postby DomeDan » Fri Nov 15, 2013 4:29 am

Easy
domedan@Host:/usr/local/src/vicidial/trunk$ grep -nR --color 'longest_wait_time' agi/
agi/agi-VDAD_ALL_inbound.agi:2199: if ($CAMP_callorder =~ /longest_wait_time/i) {$agent_call_order = 'order by vicidial_live_agents.last_state_change';}
agi/agi-VDAD_ALL_outbound.agi:1982: if ($CAMP_callorder =~ /longest_wait_time/i) {$agent_call_order = 'order by last_state_change';}

And its very simple to add a new one, its just a IF-case and the sql "order by"
and then you need to add it to the list in the admin page of-course.

I would not try to use most_calls, I guess it would result in that some agents wont get any calls, but its a easy change so go ahead and add it and find out if that is what you want :P
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Custom list handling in a campaign

Postby smontoya » Fri Nov 15, 2013 3:40 pm

Perfect, thanks! New methods added :)
Vicibox 8.0 from .iso | Vicidial 2.14-812a | SVN 3442 | DB SCHEMA 1633 | Asterisk 13.38.2-vici | Dell PowerEdge R410 | 2xE5-2420 v2 @ 2.20GHz, 12 cores,32 GB Ram |
smontoya
 
Posts: 24
Joined: Thu Nov 14, 2013 8:43 pm

Re: Custom list handling in a campaign

Postby williamconley » Sat Nov 16, 2013 4:25 pm

Almost makes you want to create a new table with those in it and a web page to edit the table so call centers can experiment with different sql queries for ordering. Easily. Without CLI access. Just like filters. 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!)

Re: Custom list handling in a campaign

Postby Acidshock » Mon Dec 02, 2013 10:57 am

Yea I would love to create a way for closers to start getting more calls based on their dispositioned sales. Hotter the closer becomes for the day the more calls they get. Maybe also something like the hotter the closer gets the more calls he gets from like openers.
VERSION: 2.14-698a | BUILD: 190207-2301 | Asterisk:13.24.1-vici | Vicibox 8.1.2
Acidshock
 
Posts: 428
Joined: Wed Mar 03, 2010 3:19 pm

Re: Custom list handling in a campaign

Postby mflorell » Tue Dec 03, 2013 7:54 am

We had a client that wrote a custom script that would run once an hour and update each users' rank based upon their calculation of productivity, so that the best agents would get the highest ranks and thus get the most calls. It really wasn't that hard of a project, once they finally set what their criteria was going to be.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Development

Who is online

Users browsing this forum: No registered users and 37 guests