PDA

View Full Version : Disconnect GPRS using EVC++ 4.x


sachinmahajan
31st January 2004, 05:43 AM
Hello,

I am writting Phone application using EVC++ (4.2) on PPC 2003. I am unable to crack following two issues,

1. I am successful in connecting to GPRS using Connection Manager API. To disconnect GPRS, I am using ReleaseConnection api but it does not disconnects GPRS connection. Is there any other API or RIL reference available to do this ?

2.After disconnecting from GPRS, I wanted to place a GSM TAPI call. In my program, I am able to place call, but the delay between disconnect GPRS and GSM Call Active is almost 20 seconds. I hope this is because I am not able to disconnect GPRS and TAPI does this when I issue a new outgoing call command and this scenario puts this delay.

Please help If anybody have any ideas in this regard...

best regards,

Sachin Mahajan

pruslan
11th February 2004, 12:53 PM
Dear Sachin!

You can try to do following:
1. Establish GPRS connection by using ConnMgrEstablishConnection()
2. Wait for end of establishing by using ConnMgrConnectionStatus(); CONNMGR_STATUS_CONNECTED means end of waiting
3. By using RasEnumConnections() you can find and store HRASCONN of your active GPRS connection (by name or simply first found)

4. Some actions...

5. ConnMgrReleaseConnection() releases ConnMgr connection
6. RasHangUp( HRASCONN ) hangs up RAS connection if p. 5 didn't do it

Sincerely
Ruslan.

sachinmahajan
11th February 2004, 03:47 PM
Hello Ruslan,

Many Many thanks for your kind help in GPRS disconnect. I will try this today and will let you know the status.

best regards,
Sachin Mahajan

pruslan
11th February 2004, 04:22 PM
Also you can get some interesting statistics before hanging up RAS connection by using RasGetLinkStatistics(). Connection duration, number of sent and received bytes...