6#ifndef ZRC_IPHONECALLSERVICE_H
7#define ZRC_IPHONECALLSERVICE_H
SIPServiceStatus
SIP service status. Here are more detailed structural descriptions.
@ SIPServiceStatusRegistering
SIP service status is registering.
@ SIPServiceStatusIdle
SIP service status is idle.
@ SIPServiceStatusRegistered
SIP service status is registered.
@ SIPServiceStatusInCall
SIP service status is in call.
@ SIPServiceStatusCallingOut
SIP service status is calling out.
@ SIPServiceStatusRegFailed
SIP service status is registration failed.
@ SIPServiceStatusRinging
SIP service status is ringing.
SIPCallTerminateReason
SIP call terminate reason. Here are more detailed structural descriptions.
@ SIPCallTerminateReasonByRemote
SIP call terminate reason is remote termination.
@ SIPCallTerminateReasonByNetworkBreak
SIP call terminate reason is network break.
@ SIPCallTerminateReasonByInitAudioDeviceFailed
SIP call terminate reason is init audio device failed.
@ SIPCallTerminateReasonByLocal
SIP call terminate reason is local termination.
@ SIPCallTerminateReasonUnknown
SIP call terminate reason is unknown.
@ SIPCallTerminateReasonBySipServiceStopped
SIP call terminate reason is sip service stopped.
EmergencyAddressType
emergency address type. Here are more detailed structural descriptions.
@ EmergencyAddressTypeStatic
Emergency address type is static.
@ EmergencyAddressTypeDetect
Emergency address type is detect.
@ EmergencyAddressTypeUnknown
Emergency address type is unknown.
SIPCallStatus
SIP call status. Here are more detailed structural descriptions.
@ SIPCallStatusInit
SIP call's status is init.
@ SIPCallStatusRinging
SIP call's status is ringing.
@ SIPCallStatusInCall
SIP call's status is in call.
@ SIPCallStatusRemoteHold
SIP call's status is remote hold.
@ SIPCallStatusHold
SIP call's status is hold.
@ SIPCallStatusAccepted
SIP call's status is accepted.
@ SIPCallStatusBusy
SIP call's status is busy.
@ SIPCallStatusStayOnPhone
SIP call's status is stay on phone.
@ SIPCallStatusSessionInProgress
SIP call's status is session in progress.
@ SIPCallStatusTimeout
SIP call's status is timeout.
@ SIPCallStatusDeclined
SIP call's status is declined.
@ SIPCallStatusCallOutFailed
SIP call's status is call out failed.
@ SIPCallStatusNotFound
SIP call's status is not found.
@ SIPCallStatusBothHold
SIP call's status is both hold.
@ SIPCallStatusIncoming
SIP call's status is incoming.
@ SIPCallStatusTerminated
SIP call's status is terminated.
@ SIPCallStatusNotAvailable
SIP call's status is not available.
SIPCallAttestLevel
SIP call attest level. Here are more detailed structural descriptions.
@ SIPCallAttestLevelB
SIP call attest level is B, represents medium attest level.
@ SIPCallAttestLevelC
SIP call attest level is C, represents low attest level.
@ SIPCallAttestLevelA
SIP call attest level is A, represents high attest level.
@ SIPCallAttestLevelUndefined
SIP call attest level is undefined.
SIPCallTransferInfoType
SIP call transfer type. Here are more detailed structural descriptions.
@ SIPCallTransferInfoTypeUnknown
SIP call transfer type is unknown.
@ SIPCallTransferInfoTypeWarmComplete
SIP call transfer type is warm complete.
@ SIPCallTransferInfoTypeWarm
SIP call transfer type is warm transfer.
@ SIPCallTransferInfoTypeBlind
SIP call transfer type is blind transfer.
@ SIPCallTransferInfoTypeVoicemail
SIP call transfer type is voicemail transfer.
SIPCallConferenceRole
SIP call conference role in merged calls. Here are more detailed structural descriptions.
@ SIPCallConferenceRoleUnknown
SIP call conference role is unknown.
@ SIPCallConferenceRoleHost
SIP call conference role is host in merged calls.
@ SIPCallConferenceRoleParticipant
SIP call conference role is participant in merged calls.
SIPCallThirdPartyType
SIP call thirdparty type. Here are more detailed structural descriptions.
@ SIPCallThirdPartyTypeTransfer
SIP call thirdparty type is transfer.
@ SIPCallThirdPartyTypeDefault
SIP call thirdparty type is default.
SIPCallSpamType
SIP call spam type. Here are more detailed structural descriptions.
@ SIPCallSpamTypeNone
SIP call spam type is none.
@ SIPCallSpamTypeSpam
SIP call spam type is spam.
@ SIPCallSpamTypeMaybeSpam
SIP call spam type is maybe spam.
@ SIPCallSpamTypeNotSpam
SIP call spam type is not spam.
ZRCSDKError
SDK error types. Here are more detailed structural descriptions.
Phone call service interface.
virtual ZRCSDKError GetLocationPermissionEnable(bool &enable)=0
Get location permission enable.
virtual ZRCSDKError HoldSIPCall(const SIPCallInfo &sipCallInfo)=0
Hold the SIP call.
virtual ZRCSDKError RegisterSink(IPhoneCallServiceSink *pSink)=0
Register phone call service callback sink.
virtual ZRCSDKError SetLocationPermissionEnable(bool enable)=0
Set location permission enable.
virtual ZRCSDKError UnholdSIPCall(const SIPCallInfo &sipCallInfo)=0
Unhold the SIP call.
virtual ZRCSDKError DeclineSIPCallToMeeting(const SIPCallInfo &sipCallInfo)=0
Decline the invitation to upgrade the SIP call to meeting.
virtual ZRCSDKError CancelWarmTransfer(const SIPCallInfo &sipCallInfo)=0
Cancel the warm transfer.
virtual ZRCSDKError MergeSIPCall(const SIPCallInfo &hostSIPCallInfo, const SIPCallInfo &participantSIPCallInfo)=0
Merge the participant SIP Call to host SIP call.
virtual ZRCSDKError EndAndAcceptIncomingSIPCall(const SIPCallInfo &sipCallInfo)=0
Accept incoming SIP call and end the foreground call.
virtual ZRCSDKError GetUnholdSIPCall(SIPCallInfo &unholdCall)=0
Get the unhold call which is ongoing call.
virtual ZRCSDKError AcceptIncomingSIPCall(const SIPCallInfo &sipCallInfo)=0
Accept incoming SIP call.
virtual ZRCSDKError AcceptSIPCallToMeeting(const SIPCallInfo &sipCallInfo)=0
Accept the invitation to upgrade the SIP call to meeting.
virtual ~IPhoneCallService()
virtual ZRCSDKError DeclineIncomingSIPCall(const SIPCallInfo &sipCallInfo)=0
Decline incoming SIP call.
virtual ZRCSDKError HoldAndAcceptIncomingSIPCall(const SIPCallInfo &sipCallInfo)=0
Accept incoming SIP call and hold the foreground call.
virtual ZRCSDKError SendDTMFToSIPCall(const std::string &dtmf, const SIPCallInfo &sipCallInfo)=0
Send DTMF to the SIP call.
virtual ZRCSDKError UpgradeSIPCallToMeeting(const SIPCallInfo &sipCallInfo, bool isEndCurrentMeeting)=0
Upgrade the SIP call to meeting.
virtual ZRCSDKError TransferSIPCall(const SIPCallInfo &sipCallInfo, const SIPCallTransferInfo &transferInfo)=0
Transfer the SIP call to other people.
virtual ZRCSDKError GetSIPCallList(std::vector< SIPCallInfo > &sipCalls)=0
Get the SIP calls.
virtual ZRCSDKError DeregisterSink(IPhoneCallServiceSink *pSink)=0
Deregister phone call service callback sink.
virtual ZRCSDKError MuteSIPCallAudio(bool mute)=0
Mute the SIP call audio.
virtual ZRCSDKError CallSIP(const std::string &uri)=0
Make a call.
virtual ZRCSDKError CompleteWarmTransfer(const SIPCallInfo &sipCallInfo)=0
Complete the warm transfer.
virtual ZRCSDKError HangupSIPCall(const SIPCallInfo &sipCallInfo)=0
Hang up an active SIP call.
Phone call service event callback.
virtual void OnUpgradeSIPCallToMeetingResult(bool succeeded, const SIPCallInfo &sipCallInfo)=0
Upgrade SIP call to meeting result.
virtual void OnUpdateSIPServiceStatusNotification(const SIPService &sipService)=0
Update SIP service info notification.
virtual void OnUpdateSIPCallAudioStatusNotification(bool muted)=0
Update SIP call audio status notification.
virtual void OnUpgradeSIPCallToMeetingNotification(bool succeeded, const SIPCallInfo &sipCallInfo)=0
Upgrade the SIP call to meeting notification.
virtual void OnTransferSIPCallNotification(bool succeeded, const SIPCallInfo &sipCallInfo)=0
Transfer SIP call notification.
virtual void OnTreatSIPCallNotification(bool accepted, const SIPCallInfo &sipCallInfo)=0
Treat SIP call notification.
virtual void OnInviteSIPCallToJoinMeetingNotification(const SIPCallInfo &sipCallInfo)=0
The invitation to upgrade the SIP call to meeting.
virtual void OnTransferSIPCallResult(bool succeeded, const SIPCallInfo &sipCallInfo, const SIPCallTransferInfo &transferInfo)=0
Transfer SIP call result.
virtual ~IPhoneCallServiceSink()
virtual void OnReceiveIncomingSIPCallNotification(const SIPCallInfo &sipCallInfo)=0
Receive incoming SIP call notification.
virtual void OnAcceptSIPCallToMeetingResult(bool succeeded, const SIPCallInfo &sipCallInfo)=0
Accept the upgrade SIP call to meeting result.
virtual void OnTerminateSIPCallNotification(SIPCallTerminateReason reason, const SIPCallInfo &sipCallInfo)=0
Terminate SIP call notification.
virtual void OnUpdateSIPCallPeerResult(bool succeeded, const SIPCallInfo &sipCallInfo)=0
Make a call to peer result.
virtual void OnUpdateSIPCallAudioResult(bool succeeded)=0
Update SIP call audio status result.
virtual void OnAnswerSIPCallResult(bool succeeded, const SIPCallInfo &sipCallInfo, bool accepted)=0
Answer incoming SIP call response callback.
virtual void OnUpdateSIPCallStatusNotification(const SIPCallInfo &sipCallInfo)=0
Update SIP call notification.
std::vector< std::string > directNumbers
Zoom Phone's directNumbers.
std::string companyNumber
Zoom Phone's companyNumber.
std::string countryCode
Zoom Phone's countryCode.
std::string formattedCompanyNumber
Zoom Phone's formattedCompanyNumber.
std::string extension
Zoom Phone's extension.
std::vector< SIPCallerID > callerIDs
Zoom Phone's callerIDs.
std::string areaCode
Zoom Phone's areaCode.
bool isEnabledMakeOutBoundPSTNCall
TRUE indicates you can make PSTN calls. Otherwise not.
std::vector< std::string > formattedDirectNumbers
Zoom Phone's formattedDirectNumbers.
bool isEnable911Call
TRUE indicates you can make emergency calls. Otherwise not.
EmergencyCall emergencyCall
Zoom Phone's emergency info.
std::string countryName
Zoom Phone's countryName.
bool isEnabledHaveADID
TRUE indicates enabled have a DID. Otherwise not.
std::string address
Emergency call address's address.
EmergencyAddressType addressType
Emergency call address's type.
Emergency call info The info about emergency call.
EmergencyCallAddress emergencyCallAddress
Emergency call's address.
std::vector< std::string > customEmergencyNumbers
The custom emergency numbers.
bool locationPermissionEnabled
TRUE indicates the location permission is enable. Otherwise not.
SIP call conference info The SIPCallConferenceInfo refers to call's info in merged calls.
SIPCallConferenceRole role
SIP call' role in merged calls, such as SIPCallConferenceRole.
std::string hostCallID
SIP call's host call ID in merged calls.
SIPCallConferenceInfo conferenceInfo
The SIP call's conference info.
SIPCallSpamType peerSpamType
The SIP call's spam type, such as SIPCallSpamType.
std::vector< SIPCallMemberInfo > remoteMembers
The SIP call's members info.
std::string blindDisplayName
The call's display name, which the current call is blind transferred from.
std::string peerURI
The SIP call's peer URI.
SIPCallStatus status
The SIP call's status.
SIPCallMemberInfo selfInfo
The self info in the SIP call.
SIPCallRedirectInfo redirectInfo
The SIP call's redirect info.
std::string peerDisplayName
The SIP call's peer display name.
std::string relatedCallID
The call's ID, which the current call is warm transferred to.
EmergencyCallAddress emergencyCallAddress
The SIP call's emergency address.
SIPCallAttestLevel peerAttestLevel
The SIP call's attest level, such as SIPCallAttestLevel.
bool isEmergencyCall
TRUE indicates the call is emergency call. Otherwise not.
std::string peerNumber
The SIP call's peer number.
std::string originalPeerURI
The SIP call's original peer URI.
bool isIncomingCall
The SIP call is incoming call.
std::string callID
The SIP call's callID.
int64_t elapsedCallTime
The SIP call's elapsed time, elapsedCallTime's unit is second.
SIP call member info The SIPCallMemberInfo refers to member information in the SIP call.
std::string number
Member's number in SIP call.
SIPCallAttestLevel attestLevel
Member's attest level in SIP call.
std::string name
Member's name in SIP call.
SIP call redirect info The SIPCallRedirectInfo refers to call's redirect info. For instance,...
SIPCallThirdPartyType endType
SIP call redirect type, such as SIPCallThirdPartyType.
std::string endName
The person's name who the call is redirected to.
std::string endNumber
The person's number who the call is redirected to.
SIPCallTransferInfoType type
SIP call transfer's type, such as SIPCallTransferInfoType.
std::string peerURI
The peer URI which the current call is transferred to.
std::string number
SIP caller's number.
std::string name
SIP caller's name.
std::string extensionID
SIP caller's extension ID.
std::string displayName
SIP service's display name.
CloudPBXServiceInfo cloudPBXServiceInfo
Zoom Phone's info.
int32_t responseCode
SIP service's response code, 200 means the sip service is available.
bool isZoomPhoneAvailable
TRUE indicates Zoom Phone is available. Otherwise not.
SIPServiceStatus status
SIP service's status, such as SIPServiceStatus.
std::string userName
SIP service's user name.
std::string responseDescription
SIP service's response code description.