Created by: Aaron Ragheb on 27-04-2010 10:44:26 PM I am trying to get the name of the logged in user to a line that I am monitoring. I start monitoring by issuing a provider.createTerminal(macAddress) (I am monitoring a super provider). There is no call on the line, therefore I am unable to use the CiscoCall.get* methods. I thought perhaps the getAsciiLabel for the CiscoAddress might be what I want, however, I am unable to register the terminal with CUCM. The developer's guide says to: ((CiscoProvider)provider).registerFeature(CiscoProvFeatureID. TERMINAL_REGISTER_UNREGISTER_EVENT_NOTIFY); however, I am unable to see that CiscoProvFeatureID has any thing other than MONITOR_CALLPARK_DN defined. I am using jtapi 7.1.3. So, I don't really care how I get the user name associated with the line (when not in a call)...is there a recommended way of doing this? Thanks!
Subject: RE: Trying to get caller ID type info Replied by: Mohan Potluri on 28-04-2010 06:54:00 PM To confirm that you are using the correct version run, 'java CiscoJtapiVersion'. Let us know the full version number. 7.1.3 version should have TERMINAL_REGISTER_UNREGISTER_EVENT_NOTIFY defined in CiscoProvFeatureID. You indicated that you are unable to register the terminal. Are you seeing exceptions when createTerminal API is called? The parameter for this API is the device name as seen on CUCM admin (typically SEPmacaddress). If you know the DN, you could do (assuming that it is not a shared line with different display names on each line) CiscoAddress adr = (CiscoAddress)provider.getAddress("DN"); System.out.println("name = " + adr.getAsciiLabel(null)); Tracking the terminal register and unregister events using registerFeature(CiscoProvFeatureID. TERMINAL_REGISTER_UNREGISTER_EVENT_NOTIFY) would be useful/needed if display names get changed frequently. Let us know how if the above pseudo code is useful.
Subject: RE: Trying to get caller ID type info Replied by: Mohan Potluri on 29-04-2010 09:51:59 PM CiscoAddress.getAsciiLabel() will return what is configured in ASCII Display (Internal Caller ID) field of the line in CUCM admin. if nothing is configured null will be returned. To get the EM user you need to use CiscoTerminal.getEMLoginUsername(). When a user EM logins to a device, Cisco JTAPI applications will see CiscoProvTerminalUnRegisteredEv and CiscoProvTerminalRegisteredEv events if registerFeature() API is used to register for these events. After seeing CiscoProvTerminalRegisteredEv, application can call CiscoTerminal.getEMLoginUsername() to get the userid. A null return value indicates that there is no active EM login.
Subject: RE: Trying to get caller ID type info Replied by: Aaron Ragheb on 29-04-2010 08:32:42 PM Hi Mohan, I am indeed using 7.1(3.100000)-1. It compiles now; I must have had a stray 6x jtapi.jar. If we call CiscoAddress.getAsciiLabel() with null, we get:
com.cisco.jtapi.InvalidStateExceptionImpl: No registered terminals or active addresses or, if we call it with the terminal in question:
com.cisco.jtapi.InvalidStateExceptionImpl: SEP001D4595845D is not registered This is when using a super provider. If I add the device to to list of controlled devices for my application user, I then get a "null" back from the call. Is this label supposed to be the logged in user name?
Dear All, We have deployed a UCCE solution which requires with the setup which leverages CVP. The infrastructure setup involves a cisco voice router, cvp, cucm, vvb and icm plus its related components.The call flow which is setup today sends an ...
I’m trying to iniate a silent monitoring session using TAPI in my admin C#/.NET application. After creating the CCiscoLineDevSpecificStartCallMonitoring object and filling in the parameters, the call to lineDevSpecific doesn't seem to do anything at all.&...
The Python library "webexteamssdk" is great but there's one part of this library that "may need better documentation". This is the ability to create cards & buttons.
Here's a card example:
How is this card setup? What compone...
I'm using CUPI to try and updates a mailbox password. So I PUT to https://srvcucn12s.nxodev.intra:443/vmrest/users/d65583a1-3da2-4fcd-b655-4beb896791df/credential/passwordwith this content<Credential><Credentials>my password here<...
Hello All, Below is my scenario Extension A is observed Caller calls from PSTN to Extension A Extension A rings and A Rejects the call.I am using call.drop() to reject the call. When I invoke this, the call seems to disconnec...