Customer app placing a call

Status
Not open for further replies.

Hayward-i1

SOHO User
Joined
Oct 4, 2023
Messages
61
Reaction score
16
Hi,

I have been a long time 3c user (approx 11 years) and have recently upgraded from V14 to V18.

One of the things I would like to do (but never got around to) is to create a link from a custom .net app where I place a button saying something like "Call Customer" and it uses an API to dial a specified number.

I do not need anything complex, just when I click place a call from extension x to external number y. To make it easier it can just call the extension number from the extension logged into the PC (I use the windows app).

I have already search for the term Makecall API but nothing has returned anything that says link to x.dll and use Makecall.place(destination)... OK, I made this bit up to give you an idea of how simply my requirement is.

All help appreciated. :-)
 
Hi @Hayward-i1,

The 3CX Call Control API does indeed have an API for MakeCall that will do precisely what you need. The challenge is how to invoke this API from a program running on a different server. The 3CX API only responds to requests from Localhost. And you certainly don't want to install your "Call Customer" application directly on the 3CX server. So, the only option you have is to create a relay that receives the remote request (coming from your "Call Customer" application) and pass this request on to the 3CX Call Control API. Passing the request to the 3CX API is the second challenge. It is not at all straightforward how to make a connection to the API.

Here is the good news. We have built the "relay", and we offer the "MakeCall" API for free. Further, as a .Net developer, we provide a .Net SDK that will make this pathetically simple.
 
Hi Matthew,

That's great to know.

So if I understand correctly, the MAKECALL api will only work on the server where the 3cx installation is? And your API will fire a message from a desktop to the server and initiate the call?

Iain
 
Hi Matthew,

That's great to know.

So if I understand correctly, the MAKECALL api will only work on the server where the 3cx installation is? And your API will fire a message from a desktop to the server and initiate the call?

Iain
This is correct

Step 1: Install relay on 3CX server (both debian and windows supported). Install takes about 5 minutes.
Step 2: Invoke MakeCall via Swagger, CURL or really anything else you want to. Specific some information in the invoke (dialing number, dialed number, etc). 3CX will call you and the destination and connect the 2 together.
 
Let me make sure we are on the same page:

Code:
Application Server                                    3CX Server
-------------------------                        --------------------------

MakeCall(From, To)          ----->               VoIPTools Relay     ----->     3CX Call Control API    ------>   3CX Phone System
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet