cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
336
Views
0
Helpful
1
Replies

Unable to get CiscoTermButtonPressedEv from JTAPI (UCCX12.0)

Hi,

I am using UCCX 12.0 sandbox and through JTAPI I am listening to all the Call events through CallObserver.

When I call the trigger point number provided by finesse, I get connected to IVR, and then IVR reads 4 team names and asked to press a digit to talk to one of the agents of the team.

Press 1 for IT_Tier_1

Press 2 for IT_Tier_2

Press 3 for HR

Press 4 for Finance

etc.

I want to know which button is being pressed by the user on the phone (Jabber in my case).

I read the docs and got to know about CiscoTermButtonPressedEv and tried implementing it as shown below

PhoneListener phoneListener = new PhoneListener();
for (Terminal terminal : provider.getTerminals()) {
    CiscoTermEvFilter ciscoTermEvFilter = ((CiscoTerminal) terminal).getFilter();
     ciscoTermEvFilter.setButtonPressedEnabled(true);
     ((CiscoTerminal) terminal).setFilter(ciscoTermEvFilter);
      terminal.addObserver(phoneListener);
}

public final class PhoneListener implements TerminalObserver {

    public PhoneListener() {
    }

    @Override
    public void terminalChangedEvent(TermEv[] events) {
        for (TermEv event : events) {
            System.out.println("TERMINAL " + event.getClass().getName());
        }
    }
}

 

Now, I am only getting below Events and not a single event of CiscoTermButtonPressedEv

CiscoTermInServiceEvImpl
CiscoTermOutOfServiceEvImpl
CiscoRTPOutputStartedEvImpl
CiscoRTPInputStartedEvImpl
CiscoRTPInputStoppedEvImpl
CiscoRTPOutputStoppedEvImpl

 What am I doing wrong?

is there any other way to do it?

Please help.

1 Reply 1

Alex Stevenson
Cisco Employee
Cisco Employee
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: