Simple Plugin for call signalisation by http call

Status
Not open for further replies.

karsten

Joined
Sep 19, 2016
Messages
6
Reaction score
1
Hello 3CX specialists,

we just try to integrate the 3cx (V15) into our crm system for some customers.
I already tried the plugin generator but it works not the way we need it.
What we need is much more simple. My problem is that i am not really firm in C# programming so i can't just change the code that way.
What we need is a http call in the background (no browser window should open) and it should have 2 dynamic parameters for the called number and the caller number.
In a perfect world i should be able to set the basic URL in a config file so i can use it for more then one installation.
So the result should be a a http call (maybe with curl or whatever works in C#) that looks like this:

https://ourcrmbasicurl.eu/calllist.php?callednumber=[CALLEDNUMBER]&callernumber=[CALLERNUMBER]

Thats all we need. All other work like identify the contact run on our site inside the system.

Does anyone have an idea if that is possible and how?
If necessary i don't want it for free.

Thanks in advance

Karsten
 
Hi Karsten,

3CXPhone has a feature to launch an executable when an inbound call arrives to your extension. You can use that to send your HTTP request using curl for example. The problem is that the only parameter you have there is the Caller ID, and not the Called number. In fact, the called number is not even available if you create a plug-in using the Visual Studio template we provide.

In any case, if you want to try this feature, this is what you need to do:
1) Open 3CXPhone for Windows client, go to Options > Advanced > Behavior
2) Under "External Application" you can check the option "Execute app on incoming calls", browse to select "curl.exe", and enter the parameters:
https://ourcrmbasicurl.eu/calllist.php?callednumber=[3CXPHONE_DOES_NOT_HAVE_THIS_INFO_HERE]&callernumber=%CallerNumber%


Hope the information helps.

Kind regards.
 
Hello Edossantos,

now that was more simple then expected. It worked on the first try.
Do you know if there are plans for a server based API later? I think to do the signalisation at a central point would be the more "sexy" way.

Thank you for your help!!
 
Thanks a lot for the information.
Because we only need this server based programming once i wonder if here is anyone around who already used this API and would like to do the programming.
Or is there a better place to ask for 3CX developers?
 
  • Like
Reactions: Pinellas Computers
Status
Not open for further replies.

Forum statistics

Threads
112,322
Messages
591,889
Members
165,470
Latest member
Robert Lee