Share via


ConnectionRetryTimeout Property

  Microsoft Speech Technologies Homepage

Gets or sets the amount of time, in seconds, during which the control makes attempts to obtain a phone line from the Telephony Interface Manager. Read/write.

Usage

ASP.NET markup: <speech:MakeCall ConnectionRetryTimeout="..." />
Get value: Integer = MakeCall.ConnectionRetryTimeout;
Set value: MakeCall.ConnectionRetryTimeout = Integer;
Data type: Integer
Required: No; Default: 600

Remarks

The ConnectionRetryTimeout property defines the amount of time during which the control will attempt to obtain a phone line in order to make a call. The ConnectionRetryInterval property defines the interval between retries. The number of retries can be calculated by dividing the value of ConnectionRetryTimeout by the value of ConnectionRetryInterval.

The value of the ConnectionRetryTimeout property is an integer between 0 and 65536. A value of 0 specifies that the control will not perform retries. The default value is 600.

If no outbound line is available after the ConnectionRetryTimeout elapses, the control will call its OnClientFailed routine, if defined, or will navigate to the error page.

Example

<script>
  function myClientConnected(obj) {
    // OnClientConnected routine
    return true;
  }
  function myClientFailed(obj, number) {
    // OnClientFailed routine
    return false;
  }
</script>
<form id="Form1" method="post" runat="server">
  ...
  <speech:MakeCall 
    ID="MakeCall1"  
    autopostback="False"
    CallingDevice="0"
    CalledDirectoryNumber="95551212"
    ConnectionRetryInterval="5"
    ConnectionRetryTimeout="60"
    OnClientConnected="myClientConnected"
    OnClientFailed="myClientFailed"
    runat="server" />
  ...
</form>

See Also

MakeCall Class | MakeCall Constructor | MakeCall Members | MakeCall Properties | MakeCall Methods | MakeCall Events | MakeCall Remarks | MakeCall Client Object