#ifdef _WIN32_WCE
lpCallParams->dwBearerMode = LINEBEARERMODE_DATA;
lpCallParams->dwMediaMode = LINEMEDIAMODE_DATAMODEM;
#else
lpCallParams->dwBearerMode = LINEBEARERMODE_VOICE;
lpCallParams->dwMediaMode = LINEMEDIAMODE_DATAMODEM;
#endif
If i set for the Laptop
dwBearerMode = LINEBEARERMODE_DATA and
dwMediaMode = LINEMEDIAMODE_DATAMODEM
lineMakeCall return this error: LINEERR_INVALBEARERMODE (0x80000016)
how is possible? if i set LINEBEARERMODE_VOICE for dwBearerMode mi
laptop does actually a Voice Call and the XDA does not recognize it is
a data call(if i can say that)....so i cant connect PC to PDA...
Is it a problem that CSD on XDA il v32 or v110 and my analogic modem is
v.92?
I tried to use the function LineSetCallParam on XDA when the call
arrive but it return an "operation unavailable". I don't find any
solution...can someone help me?
Fabio,
LINEBEARERMODE_VOICE with LINEMEDIAMODE_DATAMODEM is correct for a data
connection via modem.
It is using a 3.1 kHz analog voice-grade bearer service.
Please see MSDN for details.
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
Thanks for the answer....so i think my app would work if i try PSTN
modem <-> PSTN modem connection....(unfortuntely i don't have two line
to try,,,:D) but so for GSM to PSTN? how can i connect them?
from a GSM device you can either call an analog modem (that
should be V32 with 9600 or 1440bps) or an ISDN device
through V.110. AFAIR you don't need to take any specific
measures for this on the GSM modem side as the distinction
is made by the providers' PSTN gateway and automatically
switched depending on the endpoint's network type.
When you try the other way round, though (call from an analog
modem to a GSM device), no one can say if it is a data call
or a voice call and thus the device answers in voice mode.
If you would call your GSM modem from an ISDN device,
you would receive the call as a data call (like when you call
from another GSM device), because ISDN transfers an
appropriate service identifier.
There is a solution to your problem, though: Ask your provider
to assign a second phone number to your SIM card for data
calls. All analog calls made to this number will be signaled as
data calls at your device. The same method is used for fax
calls (where the problem is similar), so in fact you could have
even three numbers assigned to your SIM card (voice, fax, data).
At least some mobile providers in German offer this on request...
Best regards,
Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------
"Fabio" <eallo...@gmail.com> wrote in message
news:1166134031.6...@n67g2000cwd.googlegroups.com...
> Fabio,
>
> from a GSM device you can either call an analog modem (that
> should be V32 with 9600 or 1440bps) or an ISDN device
> through V.110. AFAIR you don't need to take any specific
> measures for this on the GSM modem side as the distinction
> is made by the providers' PSTN gateway and automatically
> switched depending on the endpoint's network type.
>
> When you try the other way round, though (call from an analog
> modem to a GSM device), no one can say if it is a data call
> or a voice call and thus the device answers in voice mode.
>
> If you would call your GSM modem from an ISDN device,
> you would receive the call as a data call (like when you call
> from another GSM device), because ISDN transfers an
> appropriate service identifier.
>
Thank you very mutch Matthias....you have been extremly clear! And i
think this is the right answer...as i developed this application quite
one year ago i actually used a DATA/FAX number for PPC to PPC
communication...now i have two new sim and i'm using the only the VOICE
number....i try to ask a sencod number to my provider (WIND in Italy)
and i'll let you know...
Thank you very mutch....
> Thank you very mutch Matthias....you have been extremly clear! And i
> think this is the right answer...as i developed this application quite
> one year ago i actually used a DATA/FAX number for PPC to PPC
> communication...now i have two new sim and i'm using the only the VOICE
> number....i try to ask a sencod number to my provider (WIND in Italy)
> and i'll let you know...
As mentioned, PPC >> PPC, ISDN >> PPC and PPC >> POTS should
still work with voice number, but POTS >> PPC will only work with
data number.
> Thank you very mutch....
You're welcome,
This post is wonderful about the information it holds!!
However, I have one more question. I'm newbie to TAPI programming, but
I have been looking for info for weeks about transfering DATA between
two modems with TAPI. I found all the standard samples, including the
famous TapiComm.zip (TapiComm is not released in the P-SDK anymore).
But, I can't find the main answer I'm looking for: How to TRANSFER
data between a PPC and modem with TAPI? The TapiComm sample does that
(they said...) but it can't compile anymore on VS2005.
I think it must be simple (theoretically) and it must be solved
everywhere, but I just can't find it how!! :-( It's very frustrating.
Can you please post some piece of code for Windows Mobile (C++ or
whatever you want) that allows to:
- Make a call with TAPI
- Transfer some bytes, like (10, 11, 12, 13) from one modem to other?
(or ASCII "Hello Modem!")
Or, can you tell me some guidance at least?
I'm using also a XDAII (with an internal GSM modem) to call an analog
modem, and I've found also that this GSM modem can be "unlocked" with
a DeviceIoControl call and then it's ok to send AT commands to it, but
this only works with XDAII and I would like to make the call with
TAPI, then get the handle and then transfer data!!!! (some really
simple data, but it must be transfered to a modem).
Many thanks
> This post is wonderful about the information it holds!!
Thanks for your feedback.
> Can you please post some piece of code for Windows Mobile (C++ or
> whatever you want) that allows to:
> - Make a call with TAPI
> - Transfer some bytes, like (10, 11, 12, 13) from one modem to other?
> (or ASCII "Hello Modem!")
Sorry, I don't have such a sample.
> Or, can you tell me some guidance at least?
Getting the TapiComm sample to work with VS2005 for x86 target platform
should not be too difficult. For porting the sample to Windows CE you
should try to get some help from an appropriate newsgroup for Windows
CE or Windows Mobile development.
Best regards,