<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Way2call telephony device discussion forum : Waiting for call to complete and then redialing?</title>
  <link>http://www.way2call.com/forum/</link>
  <description>This is an XML content feed of; Way2call telephony device discussion forum : Hi-Phone and .NET : Waiting for call to complete and then redialing?</description>
  <pubDate>Mon, 07 Sep 2026 07:57:44 +0000</pubDate>
  <lastBuildDate>Tue, 20 Apr 2010 11:51:36 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 10.14</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.way2call.com/forum/RSS_post_feed.asp?TID=61</WebWizForums:feedURL>
  <image>
   <title>Way2call telephony device discussion forum</title>
   <url>http://www.way2call.com/forum/forum_images/way2call_logo.jpg</url>
   <link>http://www.way2call.com/forum/</link>
  </image>
  <item>
   <title>Waiting for call to complete and then redialing? : I&amp;#039;m just a noob so there&amp;#039;s...</title>
   <link>http://www.way2call.com/forum/waiting-for-call-to-complete-and-then-redialing_topic61_post198.html#198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.way2call.com/forum/member_profile.asp?PF=80">mattj</a><br /><strong>Subject:</strong> 61<br /><strong>Posted:</strong> Apr 20 2010 at 11:51am<br /><br />I'm just a noob so there's probably a better method but i created a class. I have a few global vars to track different events. <br><br>Imports Way2call<br>Imports Way2call.Driver<br>Imports System.Threading<br>Public Class Cls_Events<br>&nbsp;&nbsp;&nbsp; Public Sub WaitForConnection(ByVal DurationSec As Integer, ByVal DeviceID As Integer)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyCallDropped = False&nbsp;&nbsp; 'clear dropped call flag<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyCallBusy = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'clear number busy flag<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyCallErrored = False&nbsp;&nbsp; 'clear call error flag<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyCallConnected = False 'clear call connected flag<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Static start_time As DateTime = Now<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim elapsed_time As TimeSpan<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If MyCallConnected = True Then Exit Do 'exit loop if OnConnected event is fired<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If MyCallBusy = True Then Exit Do 'exit loop if the line is busy<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If MyCallDropped = True Then Exit Do 'exit loop if the call was dropped<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elapsed_time = Now.Subtract(start_time)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' operation timed out exit the loop<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If elapsed_time.TotalSeconds &gt;= DurationSec Then Exit Do <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application.DoEvents()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Loop<br>&nbsp;&nbsp;&nbsp; End Sub<br>End Class<br><br><br><br>then i did something like:<br><br>w2cErr = w2cDrv.Device(0).Call("w5558675309", True, True)<br>Dim CallEvent As New Cls_Events<br>CallEvent.WaitForConnection(40, 0)<br><br><br><br><br>]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 11:51:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.way2call.com/forum/waiting-for-call-to-complete-and-then-redialing_topic61_post198.html#198</guid>
  </item> 
  <item>
   <title>Waiting for call to complete and then redialing? : I&amp;#039;m writing a .net executable...</title>
   <link>http://www.way2call.com/forum/waiting-for-call-to-complete-and-then-redialing_topic61_post189.html#189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.way2call.com/forum/member_profile.asp?PF=75">stupid48</a><br /><strong>Subject:</strong> 61<br /><strong>Posted:</strong> Apr 01 2010 at 7:39pm<br /><br />I'm writing a .net executable that will dial out.&nbsp; If nobody answers, inside the same running application, I would like to redial.&nbsp; The problem is, I don't know how to pause and wait for the first call to finish.&nbsp; In the sample console application, there is a "goto" loop that allows the redial and the key to the loop is the line: <FONT size=2><P>cki = </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Console</FONT></FONT><FONT size=2>.ReadKey(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>false</FONT></FONT><FONT size=2>);</P><DIV></DIV><DIV></DIV>So, the Console.ReadKey is pausing the thread while the software is dialing and waiting for someone to hit "a" to make a new call.&nbsp; Does anyone know how to pause the thread in a windows .net application?<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Thanks....Chris</DIV></FONT>]]>
   </description>
   <pubDate>Thu, 01 Apr 2010 19:39:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.way2call.com/forum/waiting-for-call-to-complete-and-then-redialing_topic61_post189.html#189</guid>
  </item> 
 </channel>
</rss>