Skip to main content

API Methods

All API methods with a return type of BOOL will return TRUE if successful, FALSE otherwise.

Method NameSignatureDescription
getSDKVersionNSString* getSDKVersion()Returns the current SDK version.
SIP_GetCodecListNSArray* SIP_GetCodecList()Retrieves the list of supported codecs.
SIP_GetAvailableAudioDevicesNSArray* SIP_GetAvailableAudioDevices()Returns the available audio devices on the machine.
SIP_MakeCallToNumberint SIP_MakeCallToNumber(NSString* number)Makes a call to the specified phone number.
SIP_GetSelectedAudioDevicesCaptureBOOL SIP_GetSelectedAudioDevicesCapture(int* captureDev, int* playbackDev)Gets the currently selected audio devices for making calls.
SIP_SetCallAudioDeviceWithCaptureDevBOOL SIP_SetCallAudioDeviceWithCaptureDev(int captureDev, int playbackDev)Sets the index of the audio devices used for recording and playback.
SIP_HandleIPChangevoid SIP_HandleIPChange()Handles network changes to avoid call interruptions.
SIP_DisconnectCallWithIdBOOL SIP_DisconnectCallWithId(int call_id, int code)Disconnects an existing SIP call with a given code.
SIP_DisconnectAllCallsWithCodeBOOL SIP_DisconnectAllCallsWithCode(int code)Disconnects all active calls with a given code.
SIP_MuteMicForCallIdBOOL SIP_MuteMicForCallId(int call_id, BOOL isMuted)Mutes or unmutes the microphone stream of a given call.
SIP_SetAllMicMutedBOOL SIP_SetAllMicMuted(BOOL isMuted)Mutes or unmutes the microphone for all active calls.
SIP_SendDTMFForCallIdBOOL SIP_SendDTMFForCallId(int call_id, NSString* dtmfDigits)Sends a string of DTMF digits via RFC2833 over an existing call.
SIP_HoldCallWithIdBOOL SIP_HoldCallWithId(int call_id)Puts an existing call on hold.
SIP_HoldAllCallsBOOL SIP_HoldAllCalls()Puts all active calls on hold.
SIP_UnholdCallWithIdBOOL SIP_UnholdCallWithId(int call_id)Resumes a previously held call.
SIP_UnholdAllCallsBOOL SIP_UnholdAllCalls()Resumes all previously held calls.
SIP_ChangeTxVolumeForCallIdBOOL SIP_ChangeTxVolumeForCallId(int call_id, float level)Changes the transmit volume of a call.
SIP_ChangeRxVolumeForCallIdBOOL SIP_ChangeRxVolumeForCallId(int call_id, float level)Changes the receive volume of a call.
SIP_AttendedTransferForCallIdBOOL SIP_AttendedTransferForCallId(int call_id, NSString* destinationNumber)Performs an attended transfer to another number.
SIP_CancelTransferForCallIdBOOL SIP_CancelTransferForCallId(int call_id)Cancels a previous attended transfer request.
SIP_GetActiveCallIDsNSArray* SIP_GetActiveCallIDs()Retrieves the list of IDs for ongoing calls.
SIP_AnswerCallWithIdBOOL SIP_AnswerCallWithId(int call_id)Answers an incoming call.
SIP_AnswerCallWaitingNSDictionary* SIP_AnswerCallWaiting()Answers an incoming call while holding the active call.
SIP_SwapCallWaitingForCallIdNSDictionary* SIP_SwapCallWaitingForCallId(int active_call_id)Swaps between an active call and a held call.
SIP_StartConferenceNSDictionary* SIP_StartConference()Bridges two connected calls into a conference.
SIP_TransmitWhiteNoiseint SIP_TransmitWhiteNoise()Transmits a short burst of white noise to reset the idle timer.
SIP_RegisterThreadBOOL SIP_RegisterThread()Registers the current thread with the SIP stack.
SIP_ToggleRegistrationForAccountBOOL SIP_ToggleRegistrationForAccount(int acc_id, BOOL enabled)Enables or disables SIP registration for an account.
SIP_GetLegUuidNSString* SIP_GetLegUuid(int call_id)Retrieves the history leg UUID of a specified call.
SIP_GetCallStatsNSString* SIP_GetCallStats(int call_id)Retrieves call statistics as a string for diagnostics.
SIP_GetCallStatDictNSDictionary* SIP_GetCallStatDict(int call_id)Retrieves call statistics as a JSON object.
processPushMsg (iOS only)NSDictionary* processPushMsg(NSDictionary* userInfo)Parses an incoming push message to determine call events.
CallStateCallBacktypedef void(^CallStateCallBack)(int call_id, NSString* inv_state, int last_status, NSString* last_status_text)Callback for call state changes.
RegStateCallBacktypedef void(^RegStateCallBack)(int acc_id, NSString* acc_uri, int status, NSString* status_text)Callback for registration state changes.
IncomingCallStateCallBacktypedef void(^IncomingCallStateCallBack)(int acc_id, int call_id, NSString* remote_uri, NSString* local_uri, NSString* remote_name, NSString* remote_number, NSString* local_name, NSString* local_number)Callback for new incoming calls.