Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

Simple Plugin for call signalisation by http call

Discussion in 'CRM / Helpdesk / App Integration' started by karsten, Sep 19, 2016.

Thread Status:
Not open for further replies.
  1. karsten

    Joined:
    Sep 19, 2016
    Messages:
    6
    Likes Received:
    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
     
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,602
    Likes Received:
    126
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. karsten

    Joined:
    Sep 19, 2016
    Messages:
    6
    Likes Received:
    1
    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!!
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,602
    Likes Received:
    126
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. karsten

    Joined:
    Sep 19, 2016
    Messages:
    6
    Likes Received:
    1
    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?
     
    Pinellas Computers likes this.
Thread Status:
Not open for further replies.