u***@gmail.com
2012-08-30 05:43:20 UTC
Hi,
I am experimenting with a USB GSM Modem (Prolink phs300) which has GSM voice call support. From the user interface of it's bundled utility software I can make calls and receive calls. Call option in prolink's software is shown in this image: http://social.technet.microsoft.com/Forums/getfile/151788.
I want to build a TAPI application to make GSM calls using this modem. I've gone through TAPI Quick Start Guide.
I have found that the modem is using COM11 port and by enumerating addresses I found that this USB device supports TAPIMEDIATYPE_AUDIO and TAPIMEDIATYPE_DATAMODEM. Using the enumerated address I performed a CreateCall. The code I have written may be worst as I am novice but, I need to know whether approach is correct.
ITBasicCallControl * pBasicCall;
OLECHAR * bstrAddressToCall = L"+8801835542136";
// If ( bstrAddressToCall == NULL ) process the error here.
//long dwAddressType;
hr = pAddress->CreateCall(
bstrAddressToCall,
LINEADDRESSTYPE_PHONENUMBER,
TAPIMEDIATYPE_AUDIO,
&pBasicCall
);
// If ( hr != S_OK ) process the error here.
// Create the required terminals for this call.
{
// will do it later
}
// Make the connection.
pBasicCall->Connect( TRUE );
// end of the program
What the output program does is that it creates a dialog and says "lift receiver and click talk" and it disappears in 2 seconds and terminates. The call even does not succeed to reach the other end (destination number.) When using atd command with realterm the call reaches the destination but with 'at' commands I don't know how to establish voice channel.
I need help/advice/guideline how to build an application for making voice calls and answer (so that also voice works fine) using TAPI or alternative approach that works with thess types of devices (GSM Modems).
Appreciate any help/hints. Thanks.
I am experimenting with a USB GSM Modem (Prolink phs300) which has GSM voice call support. From the user interface of it's bundled utility software I can make calls and receive calls. Call option in prolink's software is shown in this image: http://social.technet.microsoft.com/Forums/getfile/151788.
I want to build a TAPI application to make GSM calls using this modem. I've gone through TAPI Quick Start Guide.
I have found that the modem is using COM11 port and by enumerating addresses I found that this USB device supports TAPIMEDIATYPE_AUDIO and TAPIMEDIATYPE_DATAMODEM. Using the enumerated address I performed a CreateCall. The code I have written may be worst as I am novice but, I need to know whether approach is correct.
ITBasicCallControl * pBasicCall;
OLECHAR * bstrAddressToCall = L"+8801835542136";
// If ( bstrAddressToCall == NULL ) process the error here.
//long dwAddressType;
hr = pAddress->CreateCall(
bstrAddressToCall,
LINEADDRESSTYPE_PHONENUMBER,
TAPIMEDIATYPE_AUDIO,
&pBasicCall
);
// If ( hr != S_OK ) process the error here.
// Create the required terminals for this call.
{
// will do it later
}
// Make the connection.
pBasicCall->Connect( TRUE );
// end of the program
What the output program does is that it creates a dialog and says "lift receiver and click talk" and it disappears in 2 seconds and terminates. The call even does not succeed to reach the other end (destination number.) When using atd command with realterm the call reaches the destination but with 'at' commands I don't know how to establish voice channel.
I need help/advice/guideline how to build an application for making voice calls and answer (so that also voice works fine) using TAPI or alternative approach that works with thess types of devices (GSM Modems).
Appreciate any help/hints. Thanks.