Account ID or Credentials ID

Discussion in 'CRM / Helpdesk / App Integration' started by Gavris Bogdan, Mar 22, 2018.

Thread Status:
Not open for further replies.
  1. Gavris Bogdan

    Joined:
    Mar 19, 2018
    Messages:
    2
    Likes Received:
    0
    Hy, i have a plugIn app where I try to send the ID of the Account loged in the 3CX Client...
    I managed to take the number is calling but I don't find how to take the ID of the Account.
    I searched in the CallInformation, IMyPhoneCallHandler, MyPhoneStatus and nothing...
    The app is in C# using Visual Studio 2015
     
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    893
    Likes Received:
    68
    Hello @Gavris Bogdan,

    When you create your plugin, you can subscribe to the following event:
    IMyPhoneCallHandler.OnMyPhoneStatusChanged

    When you do it, when 3CXPhone starts and successfully logins using your extension, you can get the extension information as follows:
    Code:
    private void onMyPhoneStatusChanged(object sender, MyPhoneStatus status)
    {
      if (status == MyPhoneStatus.LoggedIn)
        extensionInfo = sender as IExtensionInfo;
    }
    The IExtensionInfo has a property "Number" which you can use to get the extension number.

    Is that the information you need?

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Gavris Bogdan likes this.
  3. Gavris Bogdan

    Joined:
    Mar 19, 2018
    Messages:
    2
    Likes Received:
    0
    Yes, this it is. Thx for the hint :)
     
Thread Status:
Not open for further replies.