3cx callcontroll api throughing 422 error code

kumol

SMB User
Joined
Jun 2, 2025
Messages
4
Reaction score
0
To answer call I am using the api billow
JavaScript:
https://{{PBX_FQDN}}/callcontrol/{call_receiver_dn}/participants/{participants_id}/answer
here participants_id is fetched by
https://{{PBX_FQDN}}/callcontrol/{10009/call_receiver_dn}
JavaScript:
{
    "dn": "10009",
    "type": "Wextension",
    "devices": [
        {
            "dn": "10009",
            "device_id": "sip:[email protected]:5483;rinstance=cdd4a1affd5d7ead",
            "user_agent": "3CX Mobile Client"
        },
        {
            "dn": "10009",
            "device_id": "sip:[email protected]:5060;rinstance=0-ccfbe1c42e564f51ab845035022a3cb1",
            "user_agent": "3CXPhone for Windows20.0.751.0"
        }
    ],
    "participants": [
        {
            "id": 791,
            "status": "Ringing",
            "party_caller_name": "Nuruzzama Akash",
            "party_dn": "10004",
            "party_caller_id": "10004",
            "device_id": "sip:[email protected]:5483;rinstance=cdd4a1affd5d7ead",
            "party_dn_type": "Wextension",
            "direct_control": false,
            "callid": 220,
            "legid": 3,
            "dn": "10009"
        },
        {
            "id": 792, //    * Participants_id * which is being passed to the call answer api parameter
            "status": "Ringing",
            "party_caller_name": "Nuruzzama Akash",
            "party_dn": "10004",
            "party_caller_id": "10004",
            "device_id": "sip:[email protected]:5060;rinstance=0-ccfbe1c42e564f51ab845035022a3cb1",
            "party_dn_type": "Wextension",
            "direct_control": false,
            "callid": 220,
            "legid": 4,
            "dn": "10009"
        }
    ]
}

And in the body of call answer is
JavaScript:
{
  "reason": "None",
  "destination": "10004" || "", // Which is the caller dn
  "timeout": 30
}

I am getting 422 in response which is unprocessable entity
 
direct_control is false, you cannot answer it via API.
 
direct_control is false, you cannot answer it via API.
How can i make call with the direct_control value true and then answer ? is there any setting available which is responsible for direct_control ?
 
How can i make call with the direct_control value true and then answer ? is there any setting available which is responsible for direct_control ?
You don't control that. It depends on the softphone/device used.
 
You don't control that. It depends on the softphone/device used.
So how can i answer the call using api or another option available to answer
You don't control that. It depends on the softphone/device used.
We are using 3cx own softphone still unable to answer call. Please give me a solution how can i answer the call ?
 
There is no solution. You can try to use TAPI or use auto-answer on the softphone (Windows only.)
 

Members Online Now

No members online now.

Forum statistics

Threads
111,831
Messages
589,277
Members
164,660
Latest member
RJenkinsROCK