cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
196
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Roland Russwurm on 21-05-2010 08:29:13 AM
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

Subject: RE: Detect external party
Replied by: Abhishek Malhotra on 21-05-2010 08:54:31 AM
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.

Subject: RE: Detect external party
Replied by: Roland Russwurm on 21-05-2010 11:17:01 AM
Hi Abhishek,
 
thanks, this was exactly what I was looking for!
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links