Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callcenter agent and queue related data in JSON format #2404

Open
rahulsonawane1518 opened this issue Mar 11, 2024 · 5 comments
Open

Callcenter agent and queue related data in JSON format #2404

rahulsonawane1518 opened this issue Mar 11, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@rahulsonawane1518
Copy link

Hi All,

We are trying to build callcenter related application using freeswitch call center module but we are unable to get the queue and agent related data in json format using freeswitch api.

W are getting data in text form but not in JSON format.

Can anybodt helpin this ?

@rahulsonawane1518 rahulsonawane1518 added the bug Something isn't working label Mar 11, 2024
@seven1240
Copy link
Collaborator

patches welcome. or you can directly query from DB if you use an external DB.

@jkimilu
Copy link

jkimilu commented Mar 20, 2024

Any luck with this? i am facing the same issue,or is there a way in php for format the plain text to json?

@suiyuemanbu
Copy link

suiyuemanbu commented Apr 9, 2024

json {"command": "callcenter_config", "data": {"arguments":"queue list agents", "queue_name":"901"}}
result is:
{
"command": "callcenter_config",
"data": {
"arguments": "queue list agents",
"queue_name": "901"
},
"status": "success",
"response": [
{
"name": "xxx",
"instance_id": "single_box",
"uuid": "",
"type": "callback",
"contact": "[leg_timeout=45]xxx",
"status": "Available",
"state": "Waiting",
"max_no_answer": "1",
"wrap_up_time": "10",
"reject_delay_time": "0",
"busy_delay_time": "0",
"no_answer_delay_time": "0",
"last_bridge_start": "xxx",
"last_bridge_end": "xxx",
"last_offered_call": "xxx",
"last_status_change": "xxx",
"no_answer_count": "xx",
"calls_answered": "xx",
"talk_time": "xx",
"ready_time": "xxx"
}
]
}

it is JSON format

@jkimilu
Copy link

jkimilu commented Apr 9, 2024 via email

@jkimilu
Copy link

jkimilu commented Apr 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants