Author Message
kirthikachandru
Joined: May 8, 2014
Messages: 72
Offline
Hi Team ,

Capturing caller Number via JTAPI for below API.

String calledDevice = ((LucentV5CallInfo) event).getOriginalCallInfo().getCalledDevice().getName();

String calledDevice = ((LucentV7CallInfo) event).getOriginalCallInfo().getCalledDevice().getName();

String calledDevice = ((LucentCallInfo) event).getOriginalCallInfo().getCalledDevice().getName();


All above returning Null. is there any other way to capture caller number.

Thanks,
Kirthika.C
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
OriginalCallInformation (OCI) is only filled in after two calls have been merged (conference or transfer). It contains the data that would otherwise be lost as one call block is discarded.

To get the Called number for this call, use something like:

(CallControlCallEvent)event.getCalledAddress().getName()

You can see this in action in the AgentView sample application, available from the Devconnect website.

Martin
kirthikachandru
Joined: May 8, 2014
Messages: 72
Offline
Event need to be checked for Extension or VDN ?. Checked for Extension returning Null pointer.
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
I am sorry, I do not understand your question. Can you be more specific?

Martin
kirthikachandru
Joined: May 8, 2014
Messages: 72
Offline
(CallControlCallEvent)event.getCalledAddress().getName() is for VDN evnts or extension events

Thanks,
Kirthika.C
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
Both I think.

Martin
kirthikachandru
Joined: May 8, 2014
Messages: 72
Offline
How to get called_num 9886485845 field as I am getting alpha numeric value
Filename AES test Outbound.txt [Disk] Download
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
I'm sorry, I don't understand your question. Perhaps you are getting a Dynamic Identifier - https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/support/faq/index.gsp#1020

Martin
Go to:   
Mobile view