FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unl
Go to file
rajeshvaya 23e53df721 FS-8799 [mod_callcenter] Add JSON API interface for mod_callcenter
Adding a JSON API interface to fetch data in the JSON format. It abides with the JSON command and its implementations by other modules like mod_verto.
It outputs the exactly same column names as the data in CLI.
Various listing of mod_callcenter data such as agents, queues, members, tiers are as follows below.

- Listing of agents
Command: `json {"command": "callcenter_config", "format": "pretty", "data": {"arguments":"agent list"}}`

- Listing of queues
Command: `json {"command": "callcenter_config", "format": "pretty", "data": {"arguments":"queue list"}}`

- Listing of agents for a queue
Command: `json {"command": "callcenter_config", "data": {"arguments":"queue list agents", "queue_name":"support@default"}}`
(`queue_name` is a required)

- Listing of members(callers) for a queue
Command: `json {"command": "callcenter_config", "data": {"arguments":"queue list members", "queue_name":"support@default"}}`

- Listing of tiers for a queue
Command: `json {"command": "callcenter_config","data": {"arguments":"queue list tiers", "queue_name":"support@default"}}`

- Listing of members(callers)
Command: `json {"command": "callcenter_config","data": {"arguments":"member list"}}`

- Listing of tiers
Command: `json {"command": "callcenter_config","data": {"arguments":"tier list"}}`

It handles various errors and also returns back response in JSON as follow
E.g. Send a command without a required field (`queue_name`)
Command: `json {"command": "callcenter_config", "data": {"arguments":"queue list agents"}}`
Output: `{"command":"callcenter_config","data":{"arguments":"queue list agents"},"status":"error","message":"The command returned an error","response":{"error":"Missing data attribute: queue_name"}}`
2016-01-30 12:25:57 +04:00
build FS-7776 build kazoo module 2016-01-17 16:10:14 +00:00
clients/flex FS-7585 add bandwidth settings to flash video 2015-06-04 23:33:00 +08:00
cmake_modules Completely unbundle libedit 2014-03-24 12:39:59 +00:00
conf FS-8728 default configs 2016-01-14 14:45:51 -08:00
debian FS-8788 Enabling stacksize limits for Debian packaging 2016-01-27 11:53:59 -08:00
docs FS-8130 2015-09-14 13:30:08 -05:00
dtd xmllint --dtdvalid freeswitch_dialplan.dtd /usr/local/freeswitch/conf/default_context.xml >>/dev/null 2007-11-01 14:59:32 +00:00
fonts FS-7506: Add default fonts to tree 2015-05-28 12:47:19 -05:00
fscomm FS-7966: remove some older versions of msvc build system as these will no longer work soon, please use 2015 instead 2015-08-31 10:19:10 -05:00
htdocs FS-8545 #resolve [Improve controls for screen share] 2015-11-16 15:54:43 -06:00
html5/verto FS-8600 [verto_communicator] - Added button at top menu for new window 2015-12-22 16:16:20 -03:00
images FS-7494: default avatar and mute images for video MCU 2015-05-28 12:47:26 -05:00
libs FS-8787 #resolve [fs_cli prompt modifications] 2016-01-27 12:01:14 -06:00
scripts bugfix: prevented endless loop in sendmsg 2015-12-16 05:05:13 +01:00
src FS-8799 [mod_callcenter] Add JSON API interface for mod_callcenter 2016-01-30 12:25:57 +04:00
support-d install ccache into path if it exists 2015-10-04 12:38:04 -05:00
tests/unit FS-8233 Clean up formatting 2015-10-09 11:10:32 -07:00
w32 FS-8664 #resolve add fs_cli.exe to msi so its installed. 2015-12-15 14:12:27 -06:00
web add back empty dirs 2010-04-01 21:00:45 -04:00
yum FS-8648: incorrect url's in yum repos 2015-12-15 17:02:49 +00:00
.clang-format Add .clang-format rules 2014-12-26 17:22:20 +00:00
.gitattributes Treat `*-min.js` files as minified for git 2014-08-01 16:59:11 +00:00
.gitignore FS-8108: remove legacy mod_lua, the regular mod_lua works with system lua now 2015-09-01 11:15:12 -05:00
.mailmap map emails 2014-08-01 14:47:38 -05:00
Freeswitch.2015.sln FS-8655 #resolve Update the windows build for MSVS2015 and WiX 3.10.1 to build an MSI 2015-12-14 10:58:29 -06:00
Freeswitch.2015.sln.bat FS-7966: remove some older versions of msvc build system as these will no longer work soon, please use 2015 instead 2015-08-31 10:19:10 -05:00
INSTALL test 2013-04-04 20:52:47 -05:00
Makefile.am FS-8233 Clean up formatting 2015-10-09 11:10:32 -07:00
acinclude.m4 Require libcurl as a system dependency 2014-03-20 21:15:29 +00:00
bootstrap.sh FS-7338: remove libsndfile from tree, use system lib instead 2015-05-28 12:47:24 -05:00
cc.sh add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
cluecon.tmpl update cc banner 2013-09-16 22:59:26 +05:00
cluecon2.tmpl update cc banner 2013-09-16 22:59:26 +05:00
cluecon2_small.tmpl add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
cluecon_small.tmpl add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
configure.ac Use mtmalloc on Solaris SPARC if available 2015-12-17 16:47:06 +00:00
devel-bootstrap.sh Changed permissions for devel-bootstrap.sh 2010-10-13 14:18:38 -07:00
erlang.spec ci/centos: add erlang module support files 2012-03-24 05:15:11 +00:00
freeswitch-config-rayo.spec FS-7715 #resolve updates to configure and spec files for next development branch 2015-06-23 12:22:04 -04:00
freeswitch-sounds-en-ca-june.spec update URLs for sound files 2015-05-26 00:05:37 -05:00
freeswitch-sounds-en-us-callie.spec update URLs for sound files 2015-05-26 00:05:37 -05:00
freeswitch-sounds-fr-ca-june.spec update URLs for sound files 2015-05-26 00:05:37 -05:00
freeswitch-sounds-music.spec update URLs for sound files 2015-05-26 00:05:37 -05:00
freeswitch-sounds-pt-BR-karina.spec update URLs for sound files 2015-05-26 00:05:37 -05:00
freeswitch-sounds-ru-RU-elena.spec update URLs for sound files 2015-05-26 00:05:37 -05:00
freeswitch-sounds-sv-se-jakob.spec update URLs for sound files 2015-05-26 00:05:37 -05:00
freeswitch.spec tweak to freeswitch.spec for building RPMs on centos7 2015-11-20 14:56:40 -06:00
swig_common.i FS-6061 --resolve 2013-12-23 22:43:06 +05:00