- Joined
- Jul 31, 2017
- Messages
- 18
- Reaction score
- 2
Hi Guys,
We are busy testing the XAPI for 3cx v20.
The function we want to use is the /Users/Pbx.MakeCall.
When we look at the swagger doc it shows the following will return. Note the "Result"
{
"FinalStatus": "string",
"Reason": "string",
"ReasonText": "string",
"Result": {
"CallId": 2147483647,
"DeviceId": "string",
"DirectControl": true,
"DN": "string",
"Id": 2147483647,
"LegId": 2147483647,
"PartyCallerId": "string",
"PartyCallerName": "string",
"PartyDn": "string",
"PartyDnType": "string",
"Status": "string"
}
}

When we call the API the result part of the return data is missing. Below is what we get back from the call.
{
"@odata.context": "https://our.fqdn/xapi/v1/$metadata#Pbx.CallControlResultResponse",
"FinalStatus": "Success",
"Reason": "NotSpecified",
"ReasonText": "Dialing"
}
We are using Version 20.0 Update 5 (Build 538 Beta), and system shows we are up to date.

Postman Test

Do you guys perhaps know why it's not returning the "result" data or are we doing something wrong?
Thanks
We are busy testing the XAPI for 3cx v20.
The function we want to use is the /Users/Pbx.MakeCall.
When we look at the swagger doc it shows the following will return. Note the "Result"
{
"FinalStatus": "string",
"Reason": "string",
"ReasonText": "string",
"Result": {
"CallId": 2147483647,
"DeviceId": "string",
"DirectControl": true,
"DN": "string",
"Id": 2147483647,
"LegId": 2147483647,
"PartyCallerId": "string",
"PartyCallerName": "string",
"PartyDn": "string",
"PartyDnType": "string",
"Status": "string"
}
}

When we call the API the result part of the return data is missing. Below is what we get back from the call.
{
"@odata.context": "https://our.fqdn/xapi/v1/$metadata#Pbx.CallControlResultResponse",
"FinalStatus": "Success",
"Reason": "NotSpecified",
"ReasonText": "Dialing"
}
We are using Version 20.0 Update 5 (Build 538 Beta), and system shows we are up to date.

Postman Test

Do you guys perhaps know why it's not returning the "result" data or are we doing something wrong?
Thanks