Client Plugin - get current username

Status
Not open for further replies.

Gabriel Georgescu

Joined
May 16, 2018
Messages
5
Reaction score
0
Hi,

In C#, when I develop my plugin, can I get the current username of the 3CX client?

Thanks
 
No, that information is not available through this API. You only have the extension number. You would have to use the 3CX Call Control API to do that, but it can only be used from the 3CX Server.
 
Thanks
Looking more in the docs I found MyPhonePlugins.IExtensionInfo Interface that contains Number, First Name and Last Name.

And this works!

private void callHandler_OnCallStatusChanged(object sender, MyPhonePlugins.CallStatus callInfo)
{
var extensionInfo = sender as MyPhonePlugins.IExtensionInfo;
var userInfo = extensionInfo.FirstName + " " + extensionInfo.LastName + " " + extensionInfo.Number;
}
 
Yes, you're right, I was not aware of that, sorry.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,473
Latest member
NathanMitchell