Method: CurrentCall


Function:

 

Get the current call of the line.

     

Parameters:

 

None

     

Description:

 

This property is readonly and only available at run time. It return the type of the current call from the current line.It may be the following values:

CURRENT_CALL_ORIGINAL = 0

Indicates that transfer has not been made.
CURRENT_CALL_CONSULTATION = 1
Indicates that a consultation transfer has been made by StartTransfer method.
CURRENT_CALL_CONFERENCE = 2
Indicates that a conference call has been made by CompleteTransfer method.

After StartTransfer called, some message like CALLSTATUS_NO_SOUND_AFTER_DIALING, CALLSTATUS_RINGBACK, CALL_STATUSBUSY, CALLSTATUS_VOICE_PROMPT_DETECTED, CALLSTATUS_FAX_TONE, CALLSTATUS_CALL_REJECTED, CALLSTATUS_CONNECTED, CALLSTATUS_WAIT_CONNECTION_TIMEOUT might be invoked in CallStatus event. There messages might also be invoked after Dial method called. How to distinguish these two situation? Just use CurrentCall property.

CURRENT_CALL_ORIGINAL indicates Dial has been called. CURRENT_CALL_CONSULTATION indicates that StartTransfer has been called.

 

     

Dependencies:

 

Use CurrentLineIndex, CurrentLineName to select a current line before the calling CurrentCall

     

Events Raised:

 

None

     
     

Sample Code In Visual Basic:

 

Private Sub VoiceAngel1_CallStatus(ByVal LineIndex As Long, ByVal EventID As Long, ByVal Param1 As Long, ByVal Param2 As String)
Dim strCurCall As String

Select Case VoiceAngel1.CurrentCall
Case CURRENT_CALL_ORIGINAL
strCurCall = "Call "
Case CURRENT_CALL_CONSULTATION
strCurCall = "Consultation call "
End Select


End Sub