Mohan Potluri:
For incoming calls ((CiscoAddress)CiscoCall.getCurrentCallingAddress()).getType() == CiscoAddress.EXTERNAL indicates that the caller is external.
CiscoCall.getCurrentCallingTerminal() should give the name of the trunk. (It could be truncated if the size is greater than 15).
Channel or type of the trunk is not available.
Thank you for the quick response! This is very valuable information since we are new to Cisco UCM (we've been using Avaya and Shortel).
Now for the follow-up question. ;)
If I get the calling terminal from my call (trunk name), it points me to my Cisco 2800 router's IP address. The 2800 then has the T1/PRI line plugged into it. I assume the reason I cannot get channel information from JTAPI is because the UCM doesn't handle the PRI/DID stuff. Is it the Cisco 2800 that handles that part? It would be useful to see which "channel" of the trunk the call is on. Would I have to get that information from the Cisco 2800 as opposed to the Cisco UCM?
Thanks again!