05-22-2015 04:39 AM
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?
Solved! Go to Solution.
05-22-2015 08:21 AM
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();
...
}
05-22-2015 08:21 AM
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();
...
}
05-23-2015 03:14 AM
Thank you very much!
I have tried so, but I forgot to convert Event
05-22-2015 09:48 AM
CiscoCall objCiscoCall = (CiscoCall) eventList[i].getCall();
String strCallId=objCiscoCall.getCallID().toString();
Hope this will help you.
Regards,
Umesh
05-22-2015 10:07 AM
No. It GlobalCallID and I have callLegID
05-22-2015 10:11 AM
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?
05-22-2015 10:54 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide