« Back to Cisco JTAPI Questions

Detect external party

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
I am wondering what is the best way to detect from a connection if the address is a cluster external party.
 
So in the code where I need this information I have a call object and can iterate through its connections and terminalconnections to get the addresses and terminals involved. Is there a way to determine if one of these addresses/terminals is cluster external (e.g. PSTN)?
 
Thanks,
Roland

Hi Roland,
 
While iterating through connections, pick the address associated with each connection[connection.getAddress()]. Once you have the address you can call getType() API available on CiscoAddress.
 
This API can return one of the following

CiscoAddress.INTERNAL
CiscoAddress.EXTERNAL
CiscoAddress.EXTERNAL_UNKNOWN
CiscoAddress.UNKNOWN
CiscoAddress.MONITORING_TARGET

 
For more information, please refer to the Java docs for CiscoAddress
 
 
If called party is an external party then this information is available only once the call gets offered to the destination.

Hi Abhishek,
 
thanks, this was exactly what I was looking for!