Newsgroup: it.comp.hardware.modem
Titolo: Problem RAS in WXP

I'm using a modem GSM as "Modem standard a 9600 bps" on Windows XP SP2.
My application creates one PPP Connection whit RAS and make call to remote 
device.
After some connection with positive answer,  the modem is no more available 
in the list of modem of RAS and the application fail (RAS error: 692 or 
733).
The modem is still present in Device Manager and answer correctly to Query 
from Diagnostics.
I have enable the log of RAS service and I have found the event LINE_REMOVE 
when there is the failure.
The modem is not PnP.
[464] 13:20:45:529: PortOpen: COM2
[464] 13:20:45:569: DwEnableModemDiagnostics
[464] 13:20:45:569: DwEnableModemDiagnostics. 0x0
[464] 13:20:45:569: DwEnableModemDiagnostics returned 0x0
[464] 13:20:45:569: PortOpen: successfully opened COM2
[464] 13:20:45:569:
[464] 13:20:45:579:
[464] 13:20:45:719: DeviceConnect: calling lineMakeCall for COM2, 
address=3355XXXXX
[464] 13:20:45:719: DeviceConnect: Changing state for COM2 from 1 -> 4
[420] 13:20:45:829: LINE_REPLY. param1=0x10039
[420] 13:20:45:829: RasTapicallback: linecallstate=0x10
[420] 13:20:45:829: RasTapicallback: linecallstate=0x200
[420] 13:21:09:924: RasTapicallback: linecallstate=0x100
[420] 13:21:09:924: DwGetConnectInfo
[420] 13:21:09:924: DwGetIDInformation
[420] 13:21:09:924: DwGetIDInformation. 0
[420] 13:21:09:924: SizeRequired for CallID=0
[420] 13:21:09:934: DwGetConnectResponseInformation
[420] 13:21:09:934: DwGetConnectresponses
[420] 13:21:09:934: DwGetConnectResponses done
[420] 13:21:09:934: DwGetConnectResponseInformation. 0x0
[420] 13:21:09:934: SizeRequired for ConnectResponse=14
[420] 13:21:09:934: DwGetIDInformation
[420] 13:21:09:934: DwGetIDInformation. 0
[420] 13:21:09:934: DwGetConnectResponseInformation
[420] 13:21:09:934: DwGetConnectresponses
[420] 13:21:09:934: DwGetConnectResponses done
[420] 13:21:09:934: DwGetConnectResponseInformation. 0x0
[420] 13:21:09:934: DwGetConnectInfo. 0x0
[420] 13:21:09:934: RasTapiCallback: DwGetConnectInforeturned 0x0
[420] 13:21:09:934: RasTapiCallback: Connected on COM2
[420] 13:21:09:934: RasTapiCallback: Outgoing call
[416] 13:21:09:934: DeviceWork: COM2. State = 4
[416] 13:21:09:934: DeviceWork: Changing state for COM2 from 4 -> 3
[416] 13:21:09:934: DeviceWork: TPCB_CommHandle=5664
[416] 13:21:09:934: PortGetIOHandle: Purging Comm COM2
[464] 13:21:09:984: PortConnect: COM2
[464] 13:21:09:984: PortConnect: dwRate=9600
[464] 13:21:09:984:
[420] 13:21:31:315: RasTapicallback: linecallstate=0x4000
[420] 13:21:31:315: RasTapiCallback: lineGetCallStatus for COM2 returned 
0x4000
[420] 13:21:31:315: RasTapiCallback: DisconnectReason mapped to 2
[420] 13:21:31:315: RasTapiCallback: LINECALLSTATE - initiating Port 
Disconnect
[420] 13:21:31:315: InitiatePortDisconnection: COM2
[420] 13:21:31:315: InitiatePortDisconnection: Changing state for COM2 from 
3 -> 5
[420] 13:21:31:315:
[420] 13:21:31:525: RasTapicallback: linecallstate=0x4000
[420] 13:21:31:525: RasTapiCallback: LINECALLSTATE - initiating Port 
Disconnect
[420] 13:21:31:525: InitiatePortDisconnection: COM2
[420] 13:21:31:525: InitiatePortDisconnection: Changing state for COM2 from 
5 -> 5
[420] 13:21:31:525:
[420] 13:21:31:525: RasTapicallback: linecallstate=0x1
[420] 13:21:31:525: LINE_REPLY. param1=0x1036d
[420] 13:21:31:525: LINE_REPLY. param1=0x10106
[420] 13:21:31:525: RasTapiCallback: Idle Received for port COM2
[420] 13:21:31:525: RasTapiCallback: changing state of COM2. 5 -> 1
[420] 13:21:31:525: RasTapiCallback: lineDeallocateCall for COM2,hcall = 
0x1007d
[416] 13:21:31:525: PortTestSignalState: DeviceState = 0
[416] 13:21:31:525: PortDisconnect: COM2
[416] 13:21:31:525:
[416] 13:21:31:525: PortClose: COM2
[416] 13:21:31:545: PortClose: Changing state for  COM2 from 1 -> 0
[416] 13:21:31:545:
[420] 13:21:31:545: RasTapiCallback: LINE_REMOVE
[420] 13:21:31:545: PostNotificationRemoveLine: 1
[420] 13:21:31:545: PostNotificationRemovePort: Posted 0xcb628
[416] 13:21:31:575: RemovePort: COM2
[416] 13:21:31:575: RemovePort: removing COM2
[416] 13:21:31:575: dwRemovePort: COM2
[416] 13:21:31:575: RemovePort. dwnumEndPoints for port = 0
Thanks.

