Event: Connected


Function:

 

When a call gets connected, this event is raised.

     

Parameters:

 

LineIndex(Long)

The index of the line where the event is raised.

Style(Long)
The sytle of the connection, there are following values:

CONNECT_STYLE_OUTBOUND= 0
The Line is connected for the party you dialed has picked up the phone and say "Hello". Now GetCurrentCall will return CURRENT_CALL_ORIGINAL(0)
CONNECT_STYLE_INBOUND= 1
The line is connected for Answer has been called for an incoming call. Now GetCurrentCall will return CURRENT_CALL_ORIGINAL(0).
CONNECT_STYLE_CONSULT= 2
StartTransfer has been called to transfer a call, and the transfered party has picked up the phone and say "Hello". Hence the consultaion is connected. Now GetCurrentCall will return CURRENT_CALL_CONSULT(1).
CONNECT_STYLE_CONFERENCE= 3
CompleteTransfer has been called to make a conference call, and the conference call is connected. Now GetCurrentCall will return CURRENT_CALL_CONFERENCE(2).
CONNECT_STYLE_CONSULT_CANCELLED= 4
CancelTransfer has been called and the original call is connected. Now GetCurrentCall will return CURRENT_CALL_ORIGINAL(0).

     

Description:

 

To know how VoiceAngel judge the status of the outbound call. Please refer to Judging the Telephony Line Status.

     

Raised By:

 

See above.

     

See Also:

 

Busy, VoicePromptDetected, WaitConnectionTimeout ,Judging the Telephony Line Status. Dial ,Answer

     

Sample Code In Visual Basic:

'The following code plays a wave file after getting a connected event.

Sub VoiceAngel1_Connected(LineIndex as Integer ,fIncoming as Boolean)

      VoiceAngel1.OpenWaveFile "play.wav"

      VoiceAngel1.StartPlaying 0,False

End sub

¡¡