Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: chris on September 20, 2006, 01:23:13 PM

Title: Notify Events
Post by: chris on September 20, 2006, 01:23:13 PM
Hi

I can imagine that this seems like a really basic question but I am having problems with it. I have made my connect to my Genesys Tserver but am now trying to get all the call events to the phone that I have registered. The phone is being monitored on the server but I cannot seem to get the events to my java programme. I have seem notifyEvent() method but am unsure how to implement this any help would be grateful
Title: Re: Notify Events
Post by: Haldane on September 21, 2006, 09:08:42 AM
There should be a TEvent method to get all events relating to your DN object
Title: Re: Notify Events
Post by: chris on September 21, 2006, 09:34:29 AM
Yes I would imagine that there is but I am unsure what it is I think that there is a method that when ever an event is triggered picks up the event and process it but i am unsure of how to do this. Any help would be really great
Title: Re: Notify Events
Post by: Haldane on September 21, 2006, 09:44:21 AM
Chris,
    Here's a basic VB event capture, Where extDN is a TExtension Object. When an event if fired you'll recive the data needed in the eventinfo.

Private Sub extDN_TEvent(index As Integer, eventinfo As DesktopToolkitX.TEventInfo)
    With eventinfo
        If .Event = EventQueued Then
            DoSomething(index, eventinfo)
        Endif
    End with
End sub
Title: Re: Notify Events
Post by: chris on September 21, 2006, 11:08:23 AM
That is very similar to how you do it in c# because I have got it working in there but that still does not work in java. I have made the connection to the tserver using server.OpenServerEx and registered the phone using server.RegisterAddress now i need a method that  capyures all the events that that phone fires. I have found this but am unsure how to use it
public void teleDispatchHandler(TeleEvent teleevent){

String s = new String(teleevent.getEventName());
if (s.trim().equals("EventRinging")){
System.out.println("someone's calling me.");
}

}
Title: Re: Notify Events
Post by: Haldane on September 21, 2006, 11:35:40 AM
Chris,
    I've never used Java to connect to Tserver but I give it a try later.

Regards
Title: Re: Notify Events
Post by: chris on September 21, 2006, 11:41:27 AM
ok thank you