Instructs the channel to stop a currently in progress dial
VoiceElementsClient (in VoiceElementsClient.dll) Version: 18.104.22.168
This method will tell the channel reousrce on which it is called to abort any dial
Note that this will cause the dial
to return a dial result
"Failed."Commonly Used from Another Thread
Most often your main thread will be waiting for a dial result
from a dial
you have fired off. Therefore StopDial is normally called from another thread, such as a monitor or manager thread which has determined it needs to pull the dialing thread out for some reason.Warning: Stop Dial Needs to be Called, Not Just Dispose
on a channel will not stop a dialing call. Make sure you call Stop Dial first to make sure channels get properly disposed.
The example below shows a sample collection of channels that would be stopped from another thread.
public void StopDialOnAllChannels()
ChannelList = new List<ChannelResource>();
foreach (ChannelResource cr in ChannelList)