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
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