51 Commits

Author SHA1 Message Date
Marc Olivier Chouinard
366f7ca677 mod_callcenter: Changes lot of log file to include the uuid of the member. Also added a bunch of debug log entry to help debug an issue 2011-04-22 02:22:30 -04:00
Marc Olivier Chouinard
ac619fd0e8 mod_callcenter: Possible fix on unload module freeze when an member uuid changed or is gone 2011-04-22 01:42:47 -04:00
Marc Olivier Chouinard
f17e962636 mod_callcenter: Small fix for strategy top-down 2011-04-19 03:05:32 -04:00
Marc Olivier Chouinard
bee247ca7b mod_callcenter: Another strategy 'top-down' (Name might change). This will call the agent one after the other by order... And every member start at position 1. 2011-04-19 01:25:09 -04:00
Marc Olivier Chouinard
2b4b23aac1 mod_callcenter: Ok we have round-robin and random strategy... Keep them comming ;) 2011-04-19 00:21:31 -04:00
Marc Olivier Chouinard
6432d63f00 mod_callcenter: Fix an SQL param errors ! Wish the compiler catched stuff like this 2011-04-18 23:17:58 -04:00
Marc Olivier Chouinard
0315d32076 mod_callcenter: More SQL changes to make the new strategy work on postgresql 2011-04-18 17:16:51 -04:00
Marc Olivier Chouinard
e5739b3932 mod_callcenter: SQL error in the new proto (and might not still be working) strategy 2011-04-18 15:10:40 -04:00
Marc Olivier Chouinard
bef6f0f40d mod_callcenter: Add a very prototype (and maybe not functional) strategy called : sequentially-by-next-agent-order.
It will try to find the last agent we tried to reach, and start calling more agent after that one based on position.
It will use the level for the next agent, but once that level is done, it start back at the lowest level
2011-04-17 12:46:32 -04:00
Marc Olivier Chouinard
c5ae5de0a0 FS-3250 --resolve mod_callcenter: Reload a queue wont delete all the currently waiting members. Only a reload of the module will. 2011-04-15 13:53:04 -04:00
Marc Olivier Chouinard
4e3f1b1e8e mod_callcenter: Fix an issues recently introduice that a max_wait time reach didn't continue the dialplan 2011-04-14 20:23:12 -04:00
Marc Olivier Chouinard
40a134bdf5 mod_callcenter: Remove the concept of Caller for Members. Event Socket event have been changed (CC-Caller.* to CC-Member.*) Also CC-Caller-UUID is renamed to CC-Member-Session-UUID.
The reason for this is you could actually put people to be call in the queue.  So they are not caller per say.  But they are a member of a queue.
2011-03-31 05:22:50 -04:00
Marc Olivier Chouinard
b63a72f8b3 mod_callcenter: Generate per member uuid different from the member session uuid. Might fix transfer between queue. More changes are commings 2011-03-31 05:17:04 -04:00
Marc Olivier Chouinard
d04b9a85a5 mod_callcenter: Fix error from previous commit 2011-03-28 15:10:59 -04:00
Marc Olivier Chouinard
6cf8c8f6b0 mod_callcenter: Fix potential segfault on loopback agent. Thanks to François Delawarde 2011-03-28 12:33:07 -04:00
Marc Olivier Chouinard
608b9abd5a mod_callcenter: Temporary fix for some race condition with loopback agent. Need to find the root cause of this problem 2011-03-26 10:20:06 -04:00
Marc Olivier Chouinard
dcafff201e mod_callcenter: FS-3158 Change the default and sequentially-by-agent-order strategy to include the longest-idle-agent. This should offer a default consistant way to go through all the agent within the same tier/position. (Before, it was left to the DB to return the order of the result) 2011-03-17 10:58:39 -04:00
Marc Olivier Chouinard
d4f845ed08 mod_callcenter: Should resolve lot of loopback issues mentioned. Thanks to François Delawarde 2011-03-14 12:42:02 -04:00
Marc Olivier Chouinard
25cee25547 mod_callcenter: Add better handle of failed agent, member channel getting a break, and debuging info upon leaving. Thanks to François Delawarde (with some changes) 2011-03-14 12:31:56 -04:00
Marc Olivier Chouinard
26303c5c7a mod_callcenter: Add better support when agent doesn't answer, including creating a new variable for the delay that is different than reject or busy. Thanks to François Delawarde 2011-03-12 11:58:35 -05:00
Marc Olivier Chouinard
943e289043 mod_callcenter: Small event value correction from previous commit 2011-03-12 11:44:35 -05:00
Marc Olivier Chouinard
5f2337859b mod_callcenter: >WARNING, some event value got removed< Adding new event time value that can then be used to calculate the Wait;Talk;Total duration of a member were on call. CC-Wait-Time CC-Talk-Time and CC-Total-Time are no longer returned. Visit the code or check the wiki for the updated variable. 2011-03-12 11:29:20 -05:00
Marc Olivier Chouinard
30dd1774ad mod_callcenter: Add new CLI cmd and change some to be more standard. Patch from François Delawarde, thanks. 2011-03-12 11:03:03 -05:00
Marc Olivier Chouinard
51a531aaef mod_callcenter: Fix a bug when an caller leave the queue from a BREAK Call (Transfer...), it doesn't think an agent answered. 2011-03-11 12:40:56 -05:00
Jeff Lenk
c6f044d5a1 FS-3067 segfault using busy-delay-time parameter 2011-02-28 10:02:11 -06:00
Marc Olivier Chouinard
2e399b0baf mod_callcenter: force loopback_bowout=false on originate. This will need to be reworked, but should fix basic issues call to an agent using loopback 2011-02-14 22:46:35 -05:00
Marc Olivier Chouinard
cd1982ceb7 mod_callcenter: IMPORTANT UPDATE, DTMF during moh created an loop to reactivate MOH but got canceled right away because of pending DTMF in the queue never been cleaned. Could cause masive disk write of debug, and can cause problem to the rest of FS stability. This patch also include basic fundation for DTMF capture support for member waiting. 2011-02-14 22:43:45 -05:00
Marc Olivier Chouinard
49a5effcdf mod_callcenter: Add error response for queue load and queue reload (FS-2988) 2011-01-29 03:09:06 -05:00
Brian West
3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Marc Olivier Chouinard
80174cf39f mod_callcenter: Add new eventsocket agent-offering. Plus some documentation and better handeling of bad agent type -- FS-2869 2010-11-26 20:38:46 -05:00
Marc Olivier Chouinard
81a038690a mod_callcenter: Make callcenter_config agent get return the value of the item requested. Also added queue param max-wait-time-with-no-agent-time-reached: If the max-wai-time-with-no-agent is already reached for the queue, then new caller can wait for x ammount of second before it kicked out of the queue rather than get rejected automaticly. 2010-10-29 22:41:14 -04:00
Marc Olivier Chouinard
3a47598695 mod_callcenter: Fix bad return type so it compile on archlinux, thx bougyman 2010-10-22 18:34:45 -04:00
Marc Olivier Chouinard
70d592aeba mod_callcenter: Allow to get queue info via api 2010-10-13 01:40:18 -04:00
Marc Olivier Chouinard
f288e3c38d mod_callcenter: Fix a potential segv following previous commit 2010-10-01 23:35:51 -04:00
Marc Olivier Chouinard
8bd3513461 mod_callcenter: Add param to change the location or name of the sqlite database like to put it into a ramdisk 2010-10-01 23:01:03 -04:00
Marc Olivier Chouinard
426a448f50 mod_callcenter: Fix invalid update of agent field FS-2738 2010-09-27 10:12:10 -04:00
Marc Olivier Chouinard
e1fb79a179 mod_callcenter: Make sure we fail to load if config is not present 2010-09-21 12:43:48 -04:00
Marc Olivier Chouinard
d47d32e035 mod_callcenter: Fix Initial ODBC support 2010-09-12 20:01:43 -04:00
Marc Olivier Chouinard
3482f95e72 mod_callcenter: Alot of cleanup. Added max-wait-time and max-wait-time-with-no-agent param to a queue.
max-wait-time : allow to make the caller quit the queue after X number of waited second.  The second one allow
max-wait-time-with-no-agent : This will wait for a range of second with no agent before kicking the member out of the queue.  This allow safe shift change with all agents login out and back in

I've changed the Event value from CC-Name to either CC-Agent or CC-Queue.  So watchout for your current event socket apps.  Sorry about this change.

Lot to be tested in this commit.  Please use Jira to post problems, and new feature request can be added at the bottom of the wiki page.
2010-09-08 00:07:19 -04:00
Marc Olivier Chouinard
0be95658af mod_callcenter: Make more sence to bridge the caller to the agent. Before, in the xml_cdr you saw it it like the agent initiated the call to the member 2010-09-03 22:53:14 -04:00
Marc Olivier Chouinard
2d3d8c8ddd mod_callcenter: Add more channel variable and event and fix a mem leak 2010-09-03 20:12:45 -04:00
Marc Olivier Chouinard
9b33bd1c1c mod_callcenter: correct multiple little things following the recent tiers and join back features 2010-08-26 22:49:02 -04:00
Marc Olivier Chouinard
ab2529d4e1 mod_callcenter: You can now allow caller that have hangup before agent answer to call back and resume their previous position. 2010-08-26 06:19:58 -04:00
Marc Olivier Chouinard
6558276a83 mod_callcenter: Default the level to 0 since the new tier system will wait x second at level 1... just level 0 that will ring agent right away (if set to do so) 2010-08-25 22:00:15 -04:00
Marc Olivier Chouinard
86c9bed758 mod_callcenter: Add tiers rules before jumping to a different level. Also added support for dial-in agent. 2010-08-25 21:40:33 -04:00
Marc Olivier Chouinard
8082aa987e mod_callcenter: Added value busy_delay_time and reject_delay_time so we can wait if those 2 occur (Un registred phone are considered as busy). Add a ready_time epoch time when we can contact an again again, fix ring-all (good this time I hope). 2010-08-19 21:43:07 -04:00
Marc Olivier Chouinard
6980305f3a mod_callcenter: More ODBC changes. It is not a global settings value. Cannot be changed in runtime. 2010-08-14 12:22:11 -04:00
Marc Olivier Chouinard
42436e270c mod_callcenter: Add missing odbc db support (Not tested, please someone test this) 2010-08-14 11:46:34 -04:00
Marc Olivier Chouinard
1666783cf8 mod_callcenter: Try to fix the ring-all, also add cli auto complete done in previous commit 2010-08-14 04:07:38 -04:00
Marc Olivier Chouinard
3eafca6029 mod_callcenter: Add ability to unload/reload/load a queue setting (You still need to reloadxml before).
Note that joining a queue will check for it in the config and load it on the fly... I've used the same system as in mod_voicemail.  Not sure if we should allow this, but just comment it out of the config before unload and it wont be available anymore
2010-08-13 19:15:24 -04:00