Jump to content

Receive Line State Notification in a Swyx Plug-In


Rafael

Recommended Posts

 

Hi,

[English Below]

Ich habe ein Problem mit der ClientLineMgrClass Klasse welches ich in einem Swyx Plug-In verwenden möchte.

Ich habe das Plug-In geschrieben um die Nummer von eingehende Anrufe aufzulösen, dies Funktioniert auch. Jetzt wollte ich das Plug-In so erweitern, dass ich Benachrichtigungen von eingehenden Anruf abfangen kann.

Wenn ich in der Initialize Methode des Plug-Ins die Klasse ClientLineMgrClass erzeuge, werden im Outlook die Verfügbarkeit der Mitarbeiter nicht mehr angezeigt. Ich meine den Status neben den Namen (Rot/Grün/Grau) der im Feld angezeigt wird, wo man den Empfänger der E-Mail eingibt.

Ich habe deswegen versucht die Klasse später zu erzeugen.

 

 

public int Initialize(int reserved)

        {

Task.Factory.StartNew(() =>

{

Thread.Sleep(10000);

pCLMgr = new CLMGRLib.ClientLineMgrClass();

});

return 0;

}

 

 

Danach wird der Status angezeigt aber es wird folgender Fehler im Plug-In geworfen.

Das Objekt des Typs "IpPbx.CLMgrLib.ClientLineMgrClass" kann nicht in Typ "CLMGRLib.ClientLineMgrClass" umgewandelt werden.

 

Das Beispiel „Visual Studio.Net C# PowerDialTest“  im SDK funktioniert ohne Probleme. Deswegen glaube ich es liegt am Aufruf von new CLMGRLib.ClientLineMgrClass();

Weiter unten sind die Programmierung Details.

 

[English]

At first, sorry for my bad English. I don’t a native English speaker.

I have a Problem with the ClientLineMgrClass in a Swyx Plug-In and the Outlook Presence Status.

I have write a Plug-In which resolve the Number of incoming Calls. Now I want extend this Plugin that I get Call Notification.

In the Initialize Method from the Plugin I call new CLMGRLib.ClientLineMgrClass();

This works fine and I can receive Notification but the Outlook Presence Status doesn’t work anymore.

I mean the Status (green/red/gray) which is show, when you enter a Name of a Member from the Company in the receiver Cell of an E-Mail.

Without the Call of new CLMGRLib.ClientLineMgrClass(), the Presence Status is showing.

I have try to call CLMGRLib.ClientLineMgrClass() in another Thread but there I get this Message.

Das Objekt des Typs "IpPbx.CLMgrLib.ClientLineMgrClass" kann nicht in Typ "CLMGRLib.ClientLineMgrClass" umgewandelt werden.

 

 

 

public int Initialize(int reserved)

        {

Task.Factory.StartNew(() =>

{

Thread.Sleep(10000);

pCLMgr = new CLMGRLib.ClientLineMgrClass();

});

return 0;

}

 

 

The Example “Visual Studio.Net C# PowerDialTest” from the SDK works fine and I have no problems.

 

Details:

Language: c# (Visual Studio 2015)

Outlook: 2013

Swyx: 10.30.2155

 

Mfg. Rafael Carnucci

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.