cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1596
Views
2
Helpful
6
Replies

How get CallLegID from CiscoCallEv

In CiscoJtapi01.log I see that coming event

3324: may 22 14:30:30.642 MSD %JTAPI-PROTOCOL-7-UNK:(P1-10.0.3.3) received Event: com.cisco.cti.protocol.CallStateChangedEvent {

  eventSequence                     = 150

  lineCallManagerID                 = 1

  lineID                            = 29530

  callCallManagerID                 = 1

callLegID                         = 30239392

  state                             = 1

  cause                             = 16

  farEndpointSpecified              = true

  farEndpointCallManagerID          = 1

  farEndpointType                   = 2

  fwdDestinationAddress             = null

  reason                            = 1

  callingParty                      = 4403

  callingPartyName                  = Vladimir

  calledParty                       = 5215

  calledPartyName                   = Vladimir

  originalParty                     = 5215

  originalPartyName                 = Vladimir

  lastRedirectingParty              =

  lastRedirectingPartyName          =

  callingPartyDeviceName            = SIP-01

  mediaDeviceName                   =

  mediaResourceId                   = 0

  bRemoteInUse                      = false

  bPrivacy                          = false

  callSelectStatus                  = 0

  unModifiedCallingParty            = 4403

  unModifiedCalledParty             = 5215

  unModifiedOriginalCalledParty     = 5215

  unModifiedLastRedirectingParty    =

  callingPartyPi                    = true

  callingPartyNamePi                = true

  calledPartyPi                     = true

  calledPartyNamePi                 = true

That is, in the event there is a field CallLegID?

How I get CallLegID from CiscoCallEv?

1 Accepted Solution

Accepted Solutions

derrickgunter
Level 5
Level 5

CallLegID is actually from the object CiscoConnectionID which is obtained from CiscoConnection.

So, as long as you can get the CiscoConnection from the event you can get the callLegID.

For example, for CallCtlTermConnRingingEv:


void handleRing (CallCtlTermConnRingingEv ev)

{

  int callLegId = ((CiscoConnection)ev.getTerminalConnection().getConnection()).getConnectionID().intValue();

...

}

View solution in original post

6 Replies 6

derrickgunter
Level 5
Level 5

CallLegID is actually from the object CiscoConnectionID which is obtained from CiscoConnection.

So, as long as you can get the CiscoConnection from the event you can get the callLegID.

For example, for CallCtlTermConnRingingEv:


void handleRing (CallCtlTermConnRingingEv ev)

{

  int callLegId = ((CiscoConnection)ev.getTerminalConnection().getConnection()).getConnectionID().intValue();

...

}

Thank you very much!

I have tried so, but I forgot to convert Event

upchaurasia
Spotlight
Spotlight

CiscoCall objCiscoCall = (CiscoCall) eventList[i].getCall();

String strCallId=objCiscoCall.getCallID().toString();

Hope this will help you.

Regards,

Umesh

No. It GlobalCallID and I have callLegID

objCiscoCall.getCallID().toString() returns what we call GCID of the call. The callLegID high lighted in callstateChangedEv is not GCID.


Why do you need callLegID?

I need to get a called number and calling number from CallLegID for recording system.

Because the method provider.getcall(int CallLegID) works unstable in my CUCM https://communities.cisco.com/thread/52725

My CUCM version is 7.1