Commit Graph

191 Commits

Author SHA1 Message Date
Andrey Volk 71b0ab24b1 FS-12001: [mod_callcenter] Workaround issues with renaming tables and columns in SQLite version prior to 2019-02-07 (3.27.0). 2019-08-20 18:39:01 +04:00
Fernando S Santos d3487dcc39 FS-12001: [mod_callcenter] Renamed column name from 'system' to 'instance_id' to make mod_callcenter work with MySQL through mod_mariadb 2019-08-14 16:59:09 -03:00
Andrey Volk 718d2341f7 FS-11952: [Core] Fix memory leaks. 2019-07-24 20:26:32 +04:00
António Silva 1a4e4e2f78 FS-9894 [mod_callcenger] fix call timeout if agent contact as leg_timeout to higger value than 60 2019-04-15 16:15:43 +02:00
Anthony Minessale d3e320ef56 FS-11346: [core] add api to pass pre-parsed values instead of dial strings to switch_ivr_originate
SWITCH_DECLARE(switch_status_t) switch_dial_handle_create(switch_dial_handle_t **handle);
SWITCH_DECLARE(void) switch_dial_handle_destroy(switch_dial_handle_t **handle);
SWITCH_DECLARE(void) switch_dial_handle_add_leg_list(switch_dial_handle_t *handle, switch_dial_leg_list_t **leg_listP);
SWITCH_DECLARE(void) switch_dial_leg_list_add_leg(switch_dial_leg_list_t *parent, const char *dial_string, switch_dial_leg_t **legP);
SWITCH_DECLARE(void) switch_dial_handle_add_global_var(switch_dial_handle_t *handle, const char *var, const char *val);
SWITCH_DECLARE(void) switch_dial_handle_add_global_var_printf(switch_dial_handle_t *handle, const char *var, const char *fmt, ...);
SWITCH_DECLARE(switch_status_t) switch_dial_handle_add_leg_var(switch_dial_leg_t *leg, const char *var, const char *val);
SWITCH_DECLARE(switch_status_t) switch_dial_handle_add_leg_var_printf(switch_dial_leg_t *leg, const char *var, const char *fmt, ...);
SWITCH_DECLARE(int) switch_dial_handle_get_peers(switch_dial_handle_t *handle, int idx, char **array, int max);
SWITCH_DECLARE(int) switch_dial_handle_get_vars(switch_dial_handle_t *handle, int idx, switch_event_t **array, int max);
SWITCH_DECLARE(switch_event_t *) switch_dial_handle_get_global_vars(switch_dial_handle_t *handle);
SWITCH_DECLARE(switch_event_t *) switch_dial_leg_get_vars(switch_dial_leg_t *leg);
SWITCH_DECLARE(int) switch_dial_handle_get_total(switch_dial_handle_t *handle);
SWITCH_DECLARE(void) switch_ivr_orig_and_bridge(switch_core_session_t *session, const char *data, switch_dial_handle_t *dh);

add switch_dial_handle_t *dh to end of args for switch_ivr_originate
2018-08-22 18:20:13 +00:00
Andrey Volk 1284fbb027 FS-10493: [mod_callcenter] Replace core uuid with cc_instance_id taken from callcenter.conf.xml 2018-02-14 00:53:22 +03:00
Italo Rossi 0781fafb7c Merge pull request #1464 in FS/freeswitch from ~BODJI/freeswitch:FS-10299-mod_callcenter-database-blocking to master
* commit 'b185cc6e2471bd83e560f9c75a5828537848418e':
  FS-10299: [mod_callcenter] Add an option to disable global database lock on mod_callcenter
2018-02-02 14:27:49 +00:00
Italo Rossi 19e543ba3d FS-10521 FS-10612 [mod_callcenter] Member exit reason set to EXIT_WITH_KEY when it should be TIMEOUT and only set EXIT_WITH_KEY if the key pressed is set at cc_exit_keys 2018-01-25 10:49:59 -03:00
Mathieu Bodjikian (MacBook-Pro-de-Mathieu.local) b185cc6e24 FS-10299: [mod_callcenter] Add an option to disable global database lock on mod_callcenter 2018-01-24 20:46:39 +01:00
Italo Rossi 32954c1b91 FS-10772 - [mod_callcenter] commit 404c69698e added an invalid WHERE syntax, fixed. 2017-11-03 14:47:19 -03:00
Italo Rossi 298a468edf FS-10771 - [mod_callcenter] s/member_channel/member_session when session logging 2017-11-03 13:38:04 -03:00
Italo Rossi 15455f7060 FS-10738 [mod_callcenter] - setting bridged = 0 if member give up too early 2017-10-17 20:32:35 -03:00
Italo Rossi 94e943963f FS-10738 [mod_callcenter] - Do not set state to Idle if On Demand agents do not answer call 2017-10-17 16:26:57 -03:00
Italo Rossi 75c56a0007 FS-10661: [mod_callcenter] Making cc_export_vars work with uuid-standby agents 2017-09-14 22:18:20 -03:00
Italo Rossi 77dcd007ad FS-10660: [mod_callcenter] Park agent session before play cc_warning_tone - avoid double playback causing distorted audio 2017-09-14 21:02:56 -03:00
Italo Rossi 7f31967a31 FS-10666: [mod_callcenter] Adding callcenter_break agent api
callcenter_break agent <uuid> can be called with an uuid that represents
an outbound session created to call an agent.

The current behavior of mod_callcenter is to keep watching this channel
until it is hangup, once the hangup happens the bridge-agent-end and
member-queue-end events are fired, agent is released on the database
so it can receive more calls and member is also updated on database.

If you do not want to the agent channel hangup to release the agent you can
call this app with the agent session uuid and the agent will be released and
available to receive more calls. This is useful when the agent is located on a
remote freeswitch box and transfer the call internally, the original leg between
the first FreeSWITCH and the remote box remains live and the agent will only be
Available when the original call hangup.
2017-09-13 17:39:43 -03:00
Italo Rossi 54e6cd3ebf FS-10237 [mod_callcenter] Do not kick member out at max wait time if we are originating to an agent already. 2017-08-10 00:36:58 -05:00
Italo Rossi ec44f5adf2 Revert "FS-10237 [mod_callcenter] Do not kick member out on timeout if originating to an agent"
This reverts commit b4ada1b849.
2017-08-08 14:45:05 -05:00
Marc Olivier Chouinard a1740fb600 FS-10512: Fix issue with callcenter topdown strategy 2017-07-20 21:33:55 -03:00
Italo Rossi 304ddb13cb Revert "FS-10314: Initial commit adding profiles to mod_callcenter"
This reverts commit 54c93528dc.
2017-07-18 13:25:22 -03:00
Italo Rossi 58d25329b9 Revert "FS-10511: Set status as External call when using callcenter_track"
This reverts commit 1ce87dfca1.
2017-07-18 13:09:39 -03:00
Marc Olivier Chouinard 1ce87dfca1 FS-10511: Set status as External call when using callcenter_track 2017-07-18 11:14:43 -04:00
Marc Olivier Chouinard 54c93528dc FS-10314: Initial commit adding profiles to mod_callcenter 2017-07-18 10:34:07 -04:00
Italo Rossi 8ea3e3c7bc Merge pull request #1313 in FS/freeswitch from ~ANTONIO/freeswitch:bugfix/FS-10368-mod_callcenter-lock-database-errors to master
* commit '04854fddaa1548e5d57a90fad74a433bee7a0750':
  Revert "FS-10299 [mod_callcenter] Removing global lock on all cc_execute_sql functions when executing database queries"
2017-07-06 20:52:51 +00:00
Italo Rossi 38ff0f79e9 Merge pull request #1273 in FS/freeswitch from ~EDUARDO/freeswitch:FS-10304-prevent-infinite-logging-when-a to master
* commit 'be741eab2ce34122755198c31894941f6e7da7d2':
  FS-10304: [mod_callcenter] Prevent infinite logging when a stale queue member in found in the database
2017-07-05 18:51:03 +00:00
Italo Rossi 3fef65b7c2 FS-10432 [mod_callcenter] Increase agent contact field up to 1024. 2017-06-28 16:43:16 -03:00
Antonio 04854fddaa Revert "FS-10299 [mod_callcenter] Removing global lock on all cc_execute_sql functions when executing database queries"
This reverts commit faf87febdb.
2017-06-23 19:02:39 +02:00
Italo Rossi b4ada1b849 FS-10237 [mod_callcenter] Do not kick member out on timeout if originating to an agent
Now we're passing member_session as session parameter to switch_ivr_originate, this will make
the cc_export_vars no longer needed in the future as now all the variables previously
exported will be seen by switch_ivr_originate because member_session is the ORIGINATOR.

cc_export_vars still works.
2017-06-13 00:12:15 -03:00
Eduardo Marinho be741eab2c FS-10304: [mod_callcenter] Prevent infinite logging when a stale queue member in found in the database
Having a member from a queue that is no longer found on the current system
causes infinite logging about skipping a member.

There is already cleanup code for abandoned calls in same function, but it can
never be reached for this case, because there is no queue.

If the queue is never found again in the system, the logging would continue
forever or until the stale record gets removed from the database.

FS-10304 #resolve
2017-05-11 09:43:58 -03:00
Italo Rossi faf87febdb FS-10299 [mod_callcenter] Removing global lock on all cc_execute_sql functions when executing database queries 2017-05-09 11:44:30 -03:00
Italo Rossi 97cece8968 FS-10298 [mod_callcenter] Firing bridge-agent-end if we failed to bridge answered agent with member. 2017-05-09 11:20:04 -03:00
Italo Rossi 13d5dff27d Merge pull request #1203 in FS/freeswitch from ~F93/freeswitch:bugfix/FS-10085-incorrect-no_answer_delay_time-behavoir to master
* commit '051cf19c93224bdab37fbfda68f9caaa0813aefa':
  FS-10085 [mod_callcenter] fix no_answer_delay_time behavoir in ring-all strategy
2017-04-29 00:56:43 +00:00
Italo Rossi b8af27863d Merge pull request #1202 in FS/freeswitch from ~PECHEN/freeswitch:feature/FS-10082-full-list-members-by-api to master
* commit 'f411dd49c5f951992345dcd810c5a70d8a235839':
  FS-10082 [mod_callcenter] full list members by api
2017-03-12 13:12:00 -05:00
Italo Rossi 9bb7a7d8cd Merge pull request #1074 in FS/freeswitch from ~WHENRY/freeswitch:feature/FS-9757_multi_box_patch to master
* commit '404c69698ed7a4ff215cf2d430b6a1721c693eb1':
  FS-9757 Store real system uuid in members system col and compare
2017-03-12 13:08:37 -05:00
Alexandr Popov f411dd49c5 FS-10082 [mod_callcenter] full list members by api 2017-03-06 17:53:48 +02:00
Roman Sukhov 051cf19c93 FS-10085 [mod_callcenter] fix no_answer_delay_time behavoir in ring-all strategy 2017-03-03 14:23:57 +03:00
Italo Rossi 59da3cc493 FS-10012 [mod_callcenter] Enabling bypass media if agents leg have bypass_media_after_bridge=true #resolve 2017-02-05 14:57:51 -03:00
William Henry 404c69698e FS-9757 Store real system uuid in members system col and compare 2017-01-27 16:38:13 -05:00
Italo Rossi 72927b994c [mod_callcenter] FS-9891: Checking if we got a valid pointer for a queue 2016-12-29 12:59:24 -03:00
Italo Rossi 50714ec5e4 [mod_callcenter] FS-9891: Get queue again to increase calls answered and abandoned 2016-12-27 21:35:17 -03:00
Italo Rossi 717dea47fb [mod_callcenter] FS-9347: Do not log as error when the member is gone just before we assigned an agent, now logging as DEBUG 2016-12-27 21:19:57 -03:00
Italo Rossi e614f8da24 [mod_callcenter] FS-9689 Fixed issue when agent rejects the call while hearing cc_outbound_announce making member (caller) waiting on queue forever 2016-12-27 21:14:57 -03:00
Italo Rossi 5ac10aaf32 [mod_callcenter] FS-9723: Fixing cc_warning_tone, using switch_ivr_play_file instead of queue private event 2016-12-27 20:49:59 -03:00
Italo Rossi b02df24504 FS-9869 [mod_callcenter] Exporting cc_queue_joined_epoch when originating agent outbound leg 2016-12-21 12:14:04 -03:00
Mike Jerris 1e0b827c08 Merge pull request #1067 in FS/freeswitch from ~WHENRY/freeswitch:improvement/FS-9760_remove_whitespace to master
* commit '46b63a4bb6f67d8066a354e55ea6bbd10d7d53fa':
  FS-9760 Removed the un-needed whitespace from the file
2016-12-20 18:45:35 -06:00
Italo Rossi 2ab3b14c1f FS-9835 [mod_callcenter] Fix segfault when passing freed pointer to cc_send_presence due to queue unload/reload 2016-12-09 16:34:05 -03:00
William Henry 46b63a4bb6 FS-9760 Removed the un-needed whitespace from the file 2016-11-21 17:32:22 -05:00
Italo Rossi 35e38e28a1 Merge pull request #1056 in FS/freeswitch from ~FRANCOIS/freeswitch-fs-9514:master to master
* commit 'a8926317afc71f1889b95aca72e1301a19f078b2':
  FS-9514 add event on mod_callcenter when max-no-answer is triggered
2016-11-14 08:17:14 -06:00
Italo Rossi 741e257b69 Merge pull request #957 in FS/freeswitch from ~FRANCOIS/freeswitch-fs-9516:master to master
* commit 'b182a0ce34363399b7d7c88e0014769d7f168cc0':
  FS-9516 refactor loopback agent on mod_callcenter and fix multiple minor issues
2016-11-14 08:11:09 -06:00
François a8926317af FS-9514 add event on mod_callcenter when max-no-answer is triggered 2016-11-14 15:07:07 +01:00