|
ChannelResourceMaximumTime Property |
Sets the maximum time in seconds to wait for a
Dial to complete. Default is 30.
Namespace:
VoiceElements.Client
Assembly:
VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax public int MaximumTime { get; set; }
Public Property MaximumTime As Integer
Get
Set
public:
property int MaximumTime {
int get ();
void set (int value);
}
member MaximumTime : int with get, set
Property Value
Type:
Int32Remarks
Once you have fired a
Dial, if this time expires, the
Dial Result will not return a meaningful result.
Don't Set Too Low for Intended Call Progress Mode
The way you set the
Call Progress Mode Property will directly affect how quickly your dial returns and how many possible outcomes are available. For example, if you set this to DialOnly, your code will not get a "Human Detected"
Dial Result. Make
sure you understand which mode to use and how much time needs to be alotted so as not to set this property too low and not allow
Dial Result to be properly determined.
Note: Your Dial May Be Cancelled
If you set this value too low and your call is not picked up in time, your dial will be cancelled. Take account of this in your code.
Examples
The example below shows a chunk of code that sets the Max Time Property to one minute, dials a call and then switches based on the
Dial Result.
public void DialOut()
{
TelephonyServer m_TelephonyServer = new TelephonyServer();
ChannelResource m_ChannelResource = m_TelephonyServer.GetChannel();
string m_PhoneNumber = "2135551212";
m_ChannelResource.MaximumTime = 60;
DialResult dialResult = m_ChannelResource.Dial(m_PhoneNumber);
switch (dialResult)
{
case DialResult.Connected:
break;
case DialResult.NoAnswer:
break;
case DialResult.Busy:
break;
default:
break;
}
}
Public Sub DialOut()
Dim m_TelephonyServer As New TelephonyServer()
Dim m_ChannelResource As ChannelResource = m_TelephonyServer.GetChannel()
Dim m_PhoneNumber As String = "2135551212"
m_ChannelResource.MaximumTime = 60;
Dim dialResult__1 As DialResult = m_ChannelResource.Dial(m_PhoneNumber)
Select Case dialResult__1
Case DialResult.Connected
Exit Select
Case DialResult.NoAnswer
Exit Select
Case DialResult.Busy
Exit Select
Case Else
Exit Select
End Select
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also