Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
Available now!
Buy at Amazon US or
Buy at Amazon UK



Articles

1.Windows API reference
2.HTML to WML Converter
3.Webcam streaming in VB.NET
4.Remoting with firewalls
5.RSA from first principles
6.Key & MouseLogger in .NET
7.Networking Resource Kit for .NET
8.Automatic Reboot with .NET
9.XAML Schema
10.Migrating VB6 Winsock to VB.NET
11.Migrating C++ sockets to C#
12.RFC Reference guide
13.Lingua - Localization webservice
14.COM Reference guide
15.WMI Reference guide
16.SQL stored procedures
17.TCP & UDP port reference
18..NET Framework reference
19.Ethernet Type codes
20.IP to country webservice
21.MAC address assignments
22.DLL entry point reference
23.WHOIS server list
24. Turing Numbers
25. Boost SQL performance
26. Progress Bar in ASP.NET
27. OleDb WebService
27. Internet Explorer

Contact us

11. TAPI in C# and VB.NET

TAPI, or the telephony application-programming interface is the mechanism by which computers can respond to phone calls. It is the technology behind call-centres, and all CTI (Computer Telephony Integration) applications. This application can be used to detect, pick up, and play a pre-recorded message to callers.

You will need a voice modem to use this application. Data modems can still be used with this, but you will not be able to send and receive audio after the call is accepted.

To use the application, ensure that your modem is plugged into a phone line, then press the ‘Start Modem’ button. With a second phone, ring the number for the phone line which is connected to your PC’s modem. You will see “Event: Ringing” appearing on-screen. Press ‘Accept Call’ to accept the call. At this point, the line is opened (and is probably costing you on your phone bill). You can then play a sound to the recipient by pressing the browse button, selecting an audio (.wav / wave) file, and pressing the ‘play sound’ button. The caller will then hear the sound, -albeit with some degraded sound quality. You may also receive DTMF (dual tone modulated frequency) keypad presses, as they appear on-screen as TAPI events. To drop the line, press ‘Stop modem’.

(Source code availabile in the book Network Programming in .NET (Buy at Amazon UK) (Buy at Amazon US) , Chapter 14, Example 4)

Page 2  Page 3  Page 4  Page 5  Page 6  Page 7  Page 8  Page 9  Page 10  Page 11  Page 12  Page 13 



Google

© 2008 Free SMS| Sage Line 50 Component