Send API post when call is connected

RichardH

Silver Partner
Joined
Mar 1, 2021
Messages
1
Reaction score
0
Hi,

We have created an integration script for one of our customers.
The phone number is displayed correctly in 3CX, so the getPhoneNumber function is working as expected.

However, we would also like to trigger an API so that the application is notified immediately when someone is calling.
It is almost working correctly, but we still have two issues:

With our current implementation, the API is only triggered after the call has ended.
We would like the API to be triggered immediately when the incoming call starts.
Currently, outgoing calls are also sent to this API. In this case, we only want to trigger the API for incoming calls.

What are we doing wrong, and what would be the best way to achieve this?
 

Attachments

Hello,

CRM call logging is at call end in order to be able to log all relevant call details - perhaps you should be triggering a CRM contact lookup scenario on incoming calls, and using that as your trigger.

For Outgoing calls, you need to remove outgoing call from the ReportCall scenario.
 
In the contact lookup scenario you can chain other invocations. You're currently returning the contact details, but you can also invoke your API from there. However, in this case you will only have the caller's number, but not the extension number that receives the call. If that's something that you need, then your only option is using the Call Control API to receive notifications in real-time and invoke your API when the call starts ringing.
 

Latest Posts

Forum statistics

Threads
111,918
Messages
589,736
Members
164,792
Latest member
LBS Care