package

com.cisco.telephony

Provides support for Cisco telephony features.

Cisco supports more extensive telephony features than what the Android Telephony API includes.

The Cisco Telephony API allows you to originate calls, terminate calls, put calls on hold, start conference calls, and many other features.


The Cisco Telephony API also contains more information about the call including data such as:

  • incoming name/number
  • outbound name/number
  • which line the call is on
  • the number of participants in the call
  • and more.
The Cisco Telephony API also offers more call states as opposed to Android Telephony which only offers three.

The Cisco Cius supports both the Cisco Telephony API and the Android Telephony API.
This allows you to use the one that best suits your needs.

The Cisco Telephony API is organized around three main interfaces: CiscoTelephonyManagerDevice, CiscoTelephonyManagerLine, CiscoTelephonyManagerCall.

The CiscoTelephonyManagerDevice provides device services, allows you to add listeners on the device level, create calls, get device info (CiscoTelephonyManagerDeviceInfo), and toggle states.

The CiscoTelephonyManagerLine provides line services, allows you to add listeners at the line level, and allows you to create calls and get line info ( CiscoTelephonyManagerLineInfo).

The CiscoTelephonyManagerCall provides call services, allows you to add listeners at the call level, create calls, dial voice mail, start conferences, transfer calls, terminate calls, and get call info (CiscoTelephonyManagerCallInfo).

The following basic steps to get started with using this API are demonstrated in the SamplePhoneApplication that is included in the add-on download.

1. Retrieve an instance of the Cisco Telephony Manager.
2. Get the Device from the Cisco Telephony Manager.
3. Create a Cisco Telephony Call Listener.
4. Add the Call Listener to the device.

 public void onCreate() {
 	super.onCreate();
		
 	ctm = (CiscoTelephonyManager)getSystemService(CiscoTelephonyManager.CISCO_TELEPHONY_MANAGER);
 	device = ctm.getCiscoTelephonyManagerDevice();
		
 	callListener = ctm.new CiscoTelephonyManagerCallListener() {
 		public void onCallEvent(CallEventID evID, CiscoTelephonyManagerCall ctmCall, CiscoTelephonyManagerCallInfo ctmCallInfo) {
 			try {
 				//Perform Actions on the Call
 				CallPartyId called = ctmCallInfo.getCalledParty();
 				String calledName = called.getPartyName();
 			} catch (CiscoTelephonyManagerCallInfoInvalidObject e) {
 				e.printStackTrace();
 			}
 		}	
 	};
		
 	device.addCallListener(callListener);
 }
 

Classes

CCDeviceEventID This class enumerates device events. 
CCXSIData  
CUCMModeEnum Enumerates call control server modes. 
CallAttributeEnum Enumerates the call attributes. 
CallCauseEnum Enumerates call termination causes. 
CallEventID The CallEventID class enumerates through all the possible call events. 
CallHandle This class defines a Call Handle that consists of the call id and line id of the call. 
CallPartyId Calling/Called party name and number. 
CallPrivacyEnum Enumerates call privacy states. 
CallSecurityEnum Class defining call-by-call security. 
CallServerInfo This class defines a Call Server information. 
CallServerStatusEnum This class enumerates the list of call server states. 
CallStateEnum Enumerates call states. 
CallTypeEnum Type of call. 
CiscoTelephonyManager This class allows users access to the Telephony Service in a easy and convenient manner. 
CiscoTelephonyManager.CiscoTelephonyManagerCall Provides access to manage a call and invoke features on that call. 
CiscoTelephonyManager.CiscoTelephonyManagerCallConfParticipant This interface provides access to conference participant information, such as name, number, etc. 
CiscoTelephonyManager.CiscoTelephonyManagerCallConfParticipantList This allows you to access CiscoTelephonyManagerCallConfParticipants from within the List  
CiscoTelephonyManager.CiscoTelephonyManagerCallInfo Provides access to call information, such as call state, conference roaster, etc. 
CiscoTelephonyManager.CiscoTelephonyManagerCallList This allows you to access CiscoTelephonyManagerCalls from within the List  
CiscoTelephonyManager.CiscoTelephonyManagerCallListener This lets clients implement the callback method for call events. 
CiscoTelephonyManager.CiscoTelephonyManagerDevice CiscoTelephonyManagerDevice provides device services. 
CiscoTelephonyManager.CiscoTelephonyManagerDeviceFeatureInfo This provides access to device feature information, such as feature type, state, etc. 
CiscoTelephonyManager.CiscoTelephonyManagerDeviceFeatureInfoList This allows you to access CiscoTelephonyManagerDeviceFeatureInfo from within the List  
CiscoTelephonyManager.CiscoTelephonyManagerDeviceInfo This provides methods to get device information. 
CiscoTelephonyManager.CiscoTelephonyManagerDeviceListener This lets clients implement the callback method for device events. 
CiscoTelephonyManager.CiscoTelephonyManagerLine This provides access to line services. 
CiscoTelephonyManager.CiscoTelephonyManagerLineInfo This provides methods to get line information. 
CiscoTelephonyManager.CiscoTelephonyManagerLineList This allows you to access CiscoTelephonyManagerLines from within the List  
CiscoTelephonyManager.CiscoTelephonyManagerLineListener This provides methods to get line information. 
ConfParticipant This class defines a Call Handle that consists of the call id and line id of the call. 
ConfParticipantStatusEnum Class defining conference call participant status  
DeviceFeatureStateEnum Enumerates device feature states. 
Enum Simple Enumeration Pattern Class with ordinal value  
FeatureOptionMaskEnum  
IntEnum Extension of the Enum class using Ints as identification values  
LineEventID This class enumerates line events. 
LineFeatureEnum The Line Feature Enum class holds all the available features that can be configured as a line. 
MediaDirection Direction of media with respect to the Device. 
SEnum Enum wrapper  
ServiceCauseEnum Enumerates out of service causes. 
ServiceStateEnum Enumerates service states. 
StringEnum String enum wrapper  

Exceptions