| DiaGlobWrapperAnswerCall Method (Channel, Int32) |
diaGlobWrapper Help
Answers the incoming call being offered after a specific number of rings
Namespace: InkostarAssembly: DiaGlobWrapper (in DiaGlobWrapper.dll) Version: 0.0.0.0
Syntaxpublic void AnswerCall(
Channel CurrentChannel,
int NumberOfRingsBeforeAnswer
)
Public Sub AnswerCall (
CurrentChannel As Channel,
NumberOfRingsBeforeAnswer As Integer
)
public:
virtual void AnswerCall(
Channel^ CurrentChannel,
int NumberOfRingsBeforeAnswer
) sealed
abstract AnswerCall :
CurrentChannel : Channel *
NumberOfRingsBeforeAnswer : int -> unit
override AnswerCall :
CurrentChannel : Channel *
NumberOfRingsBeforeAnswer : int -> unit Parameters
- CurrentChannel
- Type: InkostarChannel
The Channel on the Dialogic board on which the function is to be executed. - NumberOfRingsBeforeAnswer
- Type: SystemInt32
The number of rings before the incoming call is answered.
Remarks
This function can only be invoked when an incoming call is being offered and after the event EventReceived.Ringing is received.
Compatibility: All (NumberOfRingsBeforeAnswer parameter will be ignored if not supported)
On completion this function will generate an EventReceived.Connected event
On failure this function will generate an EventReceived.TaskFailed event or an exception of type DiaGlobWrapperLibException
Examples
To answer the incoming call after 5 rings:
C#: objDevice.AnswerCall(ChannelInbound, 5);
VB.NET: objDevice.AnswerCall(ChannelInbound, 5)
See Also