For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > May 2005 > Ras connection and phone calls









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Ras connection and phone calls
frank433@gmx.de

2005-05-23, 8:58 am

Hi,

I want to write an application that makes an gprs connection with
RasDial and check the connection state with RasGetConnectStatus. If the
connection breaks the application should reconnect. The application
runs on an Pocket PC device (MDA 2). Everything works fine, but if I
get an incomming phone call, I could not reconnect. After the caller
hangs up, the telefon application of my PocketPC device blocks for
exactly 1 minute. After this 1 minute I can close the telefon
application. But my ras-application could not reconnect. I got an
ERROR_WRONG_INFO_SPECIFIED error (604) with RasGetConnectStatus. I use
RasHangup before trying to make a new ras-connection with RasDial. Even
if I close my ras-application it is not possible to make a ras
connection with any buildin software on my device. If have to softreset
the device or to shut down the telefon. I use the async mode for
RasDial.
If I make on outgoing phone call, my ras-application has no problems to
reconnect.
Does anyone know how to handle this strange situation.

Thank you,
Frank

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com