TAPI (make A call)

  • Thread starter Thread starter ahmed fat-hi
  • Start date Start date
A

ahmed fat-hi

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
 
ahmed fat-hi said:
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/...mpleGuid=5d893af6-b340-49d8-9162-b90bf6932414

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

Regards,
Will
 
Back
Top