Solved

Using TAPI to make modem calls

Posted on 2006-11-07
8
364 Views
Last Modified: 2010-08-05
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?

Thanks

Chris
0
Comment
Question by:CLoucas
8 Comments
 
LVL 3

Expert Comment

by:osmantemiz
ID: 17899426
private AxMSCommLib.AxMSComm com = CoadTools.SerialCom.Port;

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


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

0
 

Author Comment

by:CLoucas
ID: 17899464
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.
0
 
LVL 12

Expert Comment

by:andrewjb
ID: 17899558
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...

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=5d893af6-b340-49d8-9162-b90bf6932414
is a simple wrapper which is old (2003) and may or may not go all the way..

http://www.julmar.com/samples.htm

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:osmantemiz
ID: 17899783
0
 
LVL 12

Expert Comment

by:andrewjb
ID: 18129520
PAQ it? There are a few useful links mentioned in here.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18153546
PAQed with no points refunded (of 500)

Computer101
EE Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question