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::Crea teCall the first parameter it takes is the
distination address (BSTR bstrAddressToCa ll)
bstrAddressToCa ll will be the phone number
to define bstrAddressToCa ll i write the following code
ITAddress * pAddress;
char *szAddressToCal l="+2 (02) 82-4570988";
BSTR bstrAddressToCa ll = SysAllocString( (OLECHAR*)
szAddressToCall );
if(S_OK == pAddress->get_DialableAd dress
(&bstrAddressTo Call))
MessageBox("ok" );
else
MessageBox("no" );
pAddress->CreateCall(
bstrAddressToCa ll,
LINEADDRESSTYPE _PHONENUMBER,
TAPIMEDIATYPE_A UDIO , //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
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::Crea teCall the first parameter it takes is the
distination address (BSTR bstrAddressToCa ll)
bstrAddressToCa ll will be the phone number
to define bstrAddressToCa ll i write the following code
ITAddress * pAddress;
char *szAddressToCal l="+2 (02) 82-4570988";
BSTR bstrAddressToCa ll = SysAllocString( (OLECHAR*)
szAddressToCall );
if(S_OK == pAddress->get_DialableAd dress
(&bstrAddressTo Call))
MessageBox("ok" );
else
MessageBox("no" );
pAddress->CreateCall(
bstrAddressToCa ll,
LINEADDRESSTYPE _PHONENUMBER,
TAPIMEDIATYPE_A UDIO , //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
Comment