Open rahulsonawane1518 opened 4 months ago
patches welcome. or you can directly query from DB if you use an external DB.
Any luck with this? i am facing the same issue,or is there a way in php for format the plain text to json?
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
This is great..how do i send the api command to achieve this result
On Tue, Apr 9, 2024 at 1:50 PM suiyuemanbu @.***> wrote:
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
— Reply to this email directly, view it on GitHub https://github.com/signalwire/freeswitch/issues/2404#issuecomment-2044700956, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHNEZPAOEJDCUNONPDSGODY4PBV3AVCNFSM6AAAAABEQAWE42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUG4YDAOJVGY . You are receiving this because you commented.Message ID: @.***>
Hello,
Kindly, how can i have the actual agent name included in the result, instead of the UUID, see below result.
{ "name": "a1dba0db-473c-4567-bfa1-65e02b951f46", "instance_id": "single_box", "uuid": "", "type": "callback", ...... }
On Tue, Apr 9, 2024 at 1:59 PM Joel Kimilu @.***> wrote:
This is great..how do i send the api command to achieve this result
On Tue, Apr 9, 2024 at 1:50 PM suiyuemanbu @.***> wrote:
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
— Reply to this email directly, view it on GitHub https://github.com/signalwire/freeswitch/issues/2404#issuecomment-2044700956, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHNEZPAOEJDCUNONPDSGODY4PBV3AVCNFSM6AAAAABEQAWE42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUG4YDAOJVGY . You are receiving this because you commented.Message ID: @.***>
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 ?