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 remove outgoing call from the ReportCall scenario.
 

Forum statistics

Threads
111,916
Messages
589,719
Members
164,785
Latest member
Texas Clay -