Make HTTP request when call starts using CFD

Status
Not open for further replies.

EDiMaio

New User
Joined
May 19, 2021
Messages
11
Reaction score
1
Hi everybody,
In my last thread (https://www.3cx.com/community/threa...oon-as-the-phone-is-picked.81595/#post-377092) I have been kindly informed about the possibile instruments I could use in order to receive the caller data everytime the phone in the office is picked for an upcoming call.
I was however wondering if I could follow another approach: I was thinking of using a CFD script which is going to:

1) Intercept an incoming call (let's say, from user 1 in the office with number 00X to user 2 with number 00Y);
2) Make an HTTP GET/POST request to a server in the local network;
3) Redirect the infos in our server to our client tools;

However, I haven't exactly got if this path is feasable. Is the CFD service only used as a automatized call center or can it actually do this kind of on demand task?
For now, I tried developing something like this:

1621516439820.png

where the script inside is configured as follows:

1621516519533.png
I also uploaded the zipped exported file in the 3CX System Management getting a green state, but nothing seems to be fired at call start neither something is logged in the C:\ProgramData\3CX\Instance1\Data\Logs path, that's why I was supposing to do something wrong.

Thank you very much for your help.
 

Attachments

  • 1621516431592.png
    1621516431592.png
    5.3 KB · Views: 3
The CFD cannot "intercept" a call. You can only transfer a call to it so that it can handle it.

What is the goal of your project?
 
Hi @Frederick Marcoux, thank you for your answer. I would need my .net program to "know" when a user picks up the phone in order to automatically open a new window with the caller data, in order to automatize some tasks, like filling forms of the caller requests, that's why I was thinking of the CFD: the phone is picked -> CFD sends an http request to my server with caller/callee data -> the server communicates to my application that the phone has been picked.
 
Hi @Frederick Marcoux, thank you for your answer. I would need my .net program to "know" when a user picks up the phone in order to automatically open a new window with the caller data, in order to automatize some tasks, like filling forms of the caller requests, that's why I was thinking of the CFD: the phone is picked -> CFD sends an http request to my server with caller/callee data -> the server communicates to my application that the phone has been picked.
Well, the CFD cannot do that.

However, for external calls (not extension-to-extension), you can use the CRM Integration which could do exactly what you need: https://www.3cx.com/docs/crm-integration/
 
Hi @Frederick Marcoux,
Using the CRM integration I have been able to register the incoming calls in my server, Thank you very much for your help and kindness.
 
Hi everybody,
Just another thing: is it possibile to obtain a similar event firing when the call has ended?
 
Hi everybody,
Just another thing: is it possibile to obtain a similar event firing when the call has ended?
Look at the ReportCall scenario of the CRM Integration. It does exactly that.
 
  • Like
Reactions: NickD_3CX
Thank you @Frederick Marcoux , I'm sorry, I should have read the documentation more carefully.
I still have one doubt though: in my case, my office has an IVR, and I noticed that the CRM starts as soon the registered phone voice starts talking. However, when the call has been redirected to one of the users, the CRM does not register the number again. Is it possibile to configure it in order to make the HTTP request every time the call has been "bounced" from user to user?
 
Last edited:
No, unfortunately the ReportCall only pushes the latest data, and the final destination agent. You cannot get the flow.

For that, you need to read the CDRs.
 
The problem with the CDR is that it's only generated after the call has ended. In my case, I would need the 3CX server to "ping" or report to my clients (or my personal server) that the user X has picked the phone answering the user Y. This way I can get a real time notification of the incoming call, the current call status etc., directly from the 3CX central server in my office. I still haven't find a clean way to do it, unfortunately.
 
Unfortunately, 3CX has no built-in ways of doing so.

I suggest looking at @VoIPTools and their suite of tools for 3CX.
 
I see, thank you for your time.
 
Status
Not open for further replies.