By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,967 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,967 IT Pros & Developers. It's quick & easy.

TAPI (make A call)

P: n/a
hi every body
to make a call using TAPI
i do the following:
1- initiate connectiion
2- Select an Address
3- make a call

when i make a call i execute the function
ITAddress::CreateCall the first parameter it takes is the
distination address (BSTR bstrAddressToCall)
bstrAddressToCall will be the phone number
to define bstrAddressToCall i write the following code

ITAddress * pAddress;
char *szAddressToCall="+2 (02) 82-4570988";
BSTR bstrAddressToCall = SysAllocString((OLECHAR*)
szAddressToCall );
if(S_OK == pAddress->get_DialableAddress
(&bstrAddressToCall))
MessageBox("ok");
else
MessageBox("no");
pAddress->CreateCall(
bstrAddressToCall,
LINEADDRESSTYPE_PHONENUMBER,
TAPIMEDIATYPE_AUDIO , //Media type
&pBasicCall
);

this code accept the phone number but still i can not make
a call. I can't dial the phone number via my modem.
can u help me plz
thanx
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"ahmed fat-hi" <am*******@hotmai.com> wrote in message
news:0d****************************@phx.gbl...
hi every body
to make a call using TAPI
i do the following:
1- initiate connectiion
2- Select an Address
3- make a call


You will find more help on using TAPI in the

microsoft.public.win32.programmer.tapi

group than you will here. I suggest that you post any follow-up to your
question again in that group.

The Platform SDK has a sample named Dialer in its subfolder

samples\netds\Tapi\Tapi2\Dialer

It looks a lot like the old dialer that was included with 95 many years ago.
It will do what you want. But perhaps unfortunately for you it uses the
earlier procedural C API rather than the new COM based API of TAPI3. (Many
of us consider that a good thing. <BWG>)

As this is a .dotnet group, I should point that if you are using a
managed language you might want to check this link which describes a
simplified
C# wrapper for TAP 2:

http://www.gotdotnet.com/Community/U...2-b90bf6932414

I haven't tried, but it shouldn't be hard to convert to (or perhaps consume
in) Managed C++

Regards,
Will

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.