« Back to Technical Questions

Call parties info from CMECallConnectionDisconnectedEvent

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi everyone,
I need some help with getting calling and called party CMEUserAddress-es from CEMCallConnectionDisconnectedEvent object. Is there any way to do that?
To be precise, I have this kind of situation
 
public void onNotification(CMEEvent event) {
 
if(event instanceof CMENotification) {
 
CMENotification notification = (CMENotification) event;
int eventType = notification.getType();
 
swtich (eventType) {
.
.
.
 
case CMENotification.Type.CALL_CONNECTION_DISCONNECTED:
CMECallConnectionDisconnectedEvent callDisconectedEvent = (CMECallConnectionDisconnectedEvent) event;
//need somthing like this
CMEUserAddress callingPartyAddress = callDisconnectedEvent.???
 
CMEUserAddress calledPartyAddress = callDisconnectedEvent.???
 
Any suggestions?

You can use getReleasingDevice()
 
dn = event.getReleasingDevice().getDn();
 
Thanks !

You can use getReleasingDevice()
 
dn = event.getReleasingDevice().getDn();

Thanks !

 
Thank you, but I am not sure how this 'dn' can help me to get callingParty and calledParty addresses?
This gives me directory number of a party that disconnected the call, right? So, how can I know if it is calling or called party?

There is no direct way to get the calling/called info from this event itself. Called/Calling info is included in the CMECallConnectionRingingEvent. Application can memorized the calling/called on this connection at that event, later when CMECallConnectionDisconnectedEvent comes in Application will know it's on calling or called connection. 
 
Can JTAPI tell the direction when this event happen ?
 
Thanks !