" /> Notify Events - Genesys CTI User Forum

Author Topic: Notify Events  (Read 5785 times)

chris

  • Guest
Notify Events
« on: September 20, 2006, 01:23:13 PM »
Advertisement
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

Offline Haldane

  • Jr. Member
  • **
  • Posts: 72
  • Karma: 1
Re: Notify Events
« Reply #1 on: September 21, 2006, 09:08:42 AM »
There should be a TEvent method to get all events relating to your DN object

Marked as best answer by on Today at 02:10:15 PM

chris

  • Guest
Re: Notify Events
« Reply #2 on: September 21, 2006, 09:34:29 AM »
  • Undo Best Answer
  • 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

    Offline Haldane

    • Jr. Member
    • **
    • Posts: 72
    • Karma: 1
    Re: Notify Events
    « Reply #3 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

    chris

    • Guest
    Re: Notify Events
    « Reply #4 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.");
    }

    }

    Offline Haldane

    • Jr. Member
    • **
    • Posts: 72
    • Karma: 1
    Re: Notify Events
    « Reply #5 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

    chris

    • Guest
    Re: Notify Events
    « Reply #6 on: September 21, 2006, 11:41:27 AM »
    ok thank you