Interface ActiveCall
-
- All Known Subinterfaces:
IncomingCall
,OutgoingCall
,QueuedCall
public interface ActiveCall
The interface represents an active call existing within the PBX. AnActiveCall
is a stateless object that only provides basic call information.- Since:
- 11.27
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCallId()
This method returns the unique callId given by the PBX.java.util.Optional<java.lang.String>
getSourceId()
This method returns the optional sourceId of the call.java.lang.String
getTargetId()
This method returns the targetId of the call.
-
-
-
Method Detail
-
getCallId
java.lang.String getCallId()
This method returns the unique callId given by the PBX.- Returns:
- the unique callId of the call
- Since:
- 11.27
-
getSourceId
java.util.Optional<java.lang.String> getSourceId()
This method returns the optional sourceId of the call. The sourceId is the caller identification or caller number of the call. If the caller is anonymous or does not provide any identification, the method returns an empty optional.- Returns:
- the sourceId which is the caller identification or caller number
- Since:
- 11.27
-
getTargetId
java.lang.String getTargetId()
This method returns the targetId of the call. The targetId is the number of the call destination.- Returns:
- the targetId which is the call destination respectively the called number
- Since:
- 11.27
-
-