• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

Using TAPI to make modem calls

I am designing a c# application that uses the serial ports (System.Ports) class to send call strings to a serial modem and receive some data.  I would like to redo this with USB modems or any other modems that might be installed in the system on which the app will be deployed.  I read that using the TAPI will enable me to do this.

Does anyone have some simple code using the TAPI from c# or vb.net?


1 Solution
private AxMSCommLib.AxMSComm com = CoadTools.SerialCom.Port;

com.PortOpen = true;
com.OnComm += new EventHandler(com_OnComm);

                  com.Output = "ATZ"+Environment.NewLine;
                  com.Output = "ATE0 &C0 L0 Q0 H0 M3 V1 X4 DT "+phonenumber+Environment.NewLine;

CLoucasAuthor Commented:
Thanks for your post, but this is exactly what I have been doing, using the Comm control for serial access.  I was looking for a TAPI interface instead.
I've been looking for the same... There isn't a M/S implementation of TAPI for C#. To implement, you need to wrap the real (COM?) version using all the interop stuff etc. etc which I didn't look into much futher.

My notes say...

Tapi2 – older version
Tapi3 – COM based never version (1999). Supported on which platforms?? (Don’t think it’s anything before 2000/XP)

Nothing is directly supported via DotNet standard classes

There are apparently issues with trying to use TAPI3 – you can get DotNet to generate a default wrapper round the Com object, but it probably doesn’t work.
TAPI 2 is OK, but you might need to use the extensions in C++ to get at it – there are lots of pointers etc. to play with.

I've probably chosen to use TransPort 2006 from http://www.componentscience.net/ - you can try an evaluation version for ever.

Alternatively, you could look at any of the following, but they all looked old / incomplete / broken to me...

is a simple wrapper which is old (2003) and may or may not go all the way..


The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

PAQ it? There are a few useful links mentioned in here.
PAQed with no points refunded (of 500)

EE Admin

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now