API: Emulating the CRM Integration

Discussion in '3CX Phone System - General' started by Trick, Oct 12, 2011.

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

    Joined:
    Oct 12, 2011
    Messages:
    2
    Likes Received:
    0
    Hi all,

    Thought I'd post in case any fellow developers have attempted the same approach. I'd like to take the CRM Integration application out of the equation and have the desktop components talk direct to my custom business application.

    I took the liberty of reflecting the 3CX CRM Integration assembly and it would appear remoting is used to communicate between the application and desktop components.

    I have tried emulating the same code in my own application in the hope that I can intercept the OnCallArrived event directly, however the remoting call never arrives.

    Is there a way I can achieve my goal? Is there some method of authenticating the remoting server that I'm missing? Any feedback would be much appreciated.

    Regards,

    Richard.
     
  2. Trick

    Joined:
    Oct 12, 2011
    Messages:
    2
    Likes Received:
    0
    Well I've basically achieved my desired outcome, all be it in a slightly different way to my initial tack.

    I'm now using the built in notification feature in MyPhone (when installed with desktop components) to launch an executable who's sole purpose is to notify my corporate application and quit.

    I managed to suss out the remoting call required to trigger an outgoing call, so I now have both directions working nicely without the need for any CRM plugin or additional application.

    The attached is a demo application written in VB.NET (VS2010), in case anyone else would benefit from the code. Basically you just need to have MyPhone installed locally with the desktop components, then configure the notification options as indicated in the screenshot below. Obviously once you have the callerId in your application, you can lookup the number in a database etc and do as you wish.

    Hope this helps,

    Richard.
     

    Attached Files:

  3. daminux

    Joined:
    Nov 10, 2011
    Messages:
    2
    Likes Received:
    0
    Hi Trick,

    Good Job, congrats.

    Question : do you know if is possible to use any others arguments, like called id or callednum, or the queue id etc...

    Cheers,

    Daminux
     
  4. enovative

    Joined:
    Feb 6, 2012
    Messages:
    5
    Likes Received:
    0
    Richard (Tricks): You are my new hero! You just saved me hours if not more trying to decipher the CRM components to get my application concept tested. This is tremendous. Should you come to the Los Angeles area, I'll take you to dinner, or Disneyland or something! Great job.
     
Thread Status:
Not open for further replies.